1 |
pva 08/11/28 14:47:44 |
2 |
|
3 |
Added: mantisbt-1.1.5-caching.patch |
4 |
mantisbt-1.1.5-extensions.patch |
5 |
Log: |
6 |
Version bump, added some fixes from upstream. Remove unsed version. |
7 |
(Portage version: 2.2_rc16/cvs/Linux 2.6.26-openvz.git-35f41f1 i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 www-apps/mantisbt/files/mantisbt-1.1.5-caching.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mantisbt/files/mantisbt-1.1.5-caching.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mantisbt/files/mantisbt-1.1.5-caching.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: mantisbt-1.1.5-caching.patch |
16 |
=================================================================== |
17 |
From: John Reese <jreese@××××××××.net> |
18 |
Date: Mon, 24 Nov 2008 14:11:42 +0000 (-0500) |
19 |
Subject: Revert 4ee424e1, fix #9754, #9869, #9323 by adding Last-Modified headers to match... |
20 |
X-Git-Url: http://git.mantisbt.org/?p=mantisbt.git;a=commitdiff_plain;h=161a677ee2b986507a06dbb65a9dfe848bd21935 |
21 |
|
22 |
Revert 4ee424e1, fix #9754, #9869, #9323 by adding Last-Modified headers to match Expires. |
23 |
|
24 |
Commit has been tested on: |
25 |
FF 2.0.14 |
26 |
FF 3.0.4 |
27 |
IE 8.0.6001.18241 |
28 |
IE 6.0.2900.5122 |
29 |
GC 0.4.154.23 |
30 |
Opera 9.51.10081 |
31 |
--- |
32 |
|
33 |
diff --git a/core.php b/core.php |
34 |
index 32fb66f..03c13c6 100644 |
35 |
--- a/core.php |
36 |
+++ b/core.php |
37 |
@@ -159,9 +159,9 @@ |
38 |
|
39 |
if ( isset( $g_allow_browser_cache ) && ON == $g_allow_browser_cache ) { |
40 |
switch ( $t_browser_name ) { |
41 |
- #case 'IE': |
42 |
- # header( 'Cache-Control: private, proxy-revalidate' ); |
43 |
- # break; |
44 |
+ case 'IE': |
45 |
+ header( 'Cache-Control: private, proxy-revalidate' ); |
46 |
+ break; |
47 |
default: |
48 |
header( 'Cache-Control: private, must-revalidate' ); |
49 |
break; |
50 |
@@ -172,6 +172,7 @@ |
51 |
} |
52 |
|
53 |
header( 'Expires: ' . gmdate( 'D, d M Y H:i:s \G\M\T', time() ) ); |
54 |
+ header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s \G\M\T', time() ) ); |
55 |
|
56 |
# SEND USER-DEFINED HEADERS |
57 |
foreach( config_get( 'custom_headers' ) as $t_header ) { |
58 |
|
59 |
|
60 |
|
61 |
1.1 www-apps/mantisbt/files/mantisbt-1.1.5-extensions.patch |
62 |
|
63 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mantisbt/files/mantisbt-1.1.5-extensions.patch?rev=1.1&view=markup |
64 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mantisbt/files/mantisbt-1.1.5-extensions.patch?rev=1.1&content-type=text/plain |
65 |
|
66 |
Index: mantisbt-1.1.5-extensions.patch |
67 |
=================================================================== |
68 |
From: John Reese <jreese@××××××××.net> |
69 |
Date: Tue, 25 Nov 2008 19:54:32 +0000 (-0500) |
70 |
Subject: Fix #9890: improper comparison of file extensions in file_download.php |
71 |
X-Git-Url: http://git.mantisbt.org/?p=mantisbt.git;a=commitdiff_plain;h=99903fda7b565afc30a9ae9e37f9cae2053430ff |
72 |
|
73 |
Fix #9890: improper comparison of file extensions in file_download.php |
74 |
--- |
75 |
|
76 |
diff --git a/file_download.php b/file_download.php |
77 |
index 067b03a..8074cc4 100644 |
78 |
--- a/file_download.php |
79 |
+++ b/file_download.php |
80 |
@@ -91,7 +91,7 @@ |
81 |
header( 'Content-Length: ' . $v_filesize ); |
82 |
$t_filename = file_get_display_name( $v_filename ); |
83 |
$t_inline_files = explode(',', config_get('inline_file_exts', 'gif')); |
84 |
- if ( in_array( file_get_extension($t_filename), $t_inline_files ) ) { |
85 |
+ if ( in_array( strtolower( file_get_extension($t_filename) ), $t_inline_files ) ) { |
86 |
$t_disposition = ''; //'inline;'; |
87 |
} else { |
88 |
$t_disposition = ' attachment;'; |