diff options
author | 2008-11-28 14:47:44 +0000 | |
---|---|---|
committer | 2008-11-28 14:47:44 +0000 | |
commit | 90ebe5142cdbec13320dbd98c1c52503e107e663 (patch) | |
tree | 7c99639af1ae36fe99bf9b58d3908b4b99637748 /www-apps/mantisbt/files | |
parent | keyword ~x86-fbsd, bug #247076 (diff) | |
download | historical-90ebe5142cdbec13320dbd98c1c52503e107e663.tar.gz historical-90ebe5142cdbec13320dbd98c1c52503e107e663.tar.bz2 historical-90ebe5142cdbec13320dbd98c1c52503e107e663.zip |
Version bump, added some fixes from upstream. Remove unsed version.
Package-Manager: portage-2.2_rc16/cvs/Linux 2.6.26-openvz.git-35f41f1 i686
Diffstat (limited to 'www-apps/mantisbt/files')
-rw-r--r-- | www-apps/mantisbt/files/mantisbt-1.1.5-caching.patch | 41 | ||||
-rw-r--r-- | www-apps/mantisbt/files/mantisbt-1.1.5-extensions.patch | 21 |
2 files changed, 62 insertions, 0 deletions
diff --git a/www-apps/mantisbt/files/mantisbt-1.1.5-caching.patch b/www-apps/mantisbt/files/mantisbt-1.1.5-caching.patch new file mode 100644 index 000000000000..aa8b83e42204 --- /dev/null +++ b/www-apps/mantisbt/files/mantisbt-1.1.5-caching.patch @@ -0,0 +1,41 @@ +From: John Reese <jreese@leetcode.net> +Date: Mon, 24 Nov 2008 14:11:42 +0000 (-0500) +Subject: Revert 4ee424e1, fix #9754, #9869, #9323 by adding Last-Modified headers to match... +X-Git-Url: http://git.mantisbt.org/?p=mantisbt.git;a=commitdiff_plain;h=161a677ee2b986507a06dbb65a9dfe848bd21935 + +Revert 4ee424e1, fix #9754, #9869, #9323 by adding Last-Modified headers to match Expires. + +Commit has been tested on: + FF 2.0.14 + FF 3.0.4 + IE 8.0.6001.18241 + IE 6.0.2900.5122 + GC 0.4.154.23 + Opera 9.51.10081 +--- + +diff --git a/core.php b/core.php +index 32fb66f..03c13c6 100644 +--- a/core.php ++++ b/core.php +@@ -159,9 +159,9 @@ + + if ( isset( $g_allow_browser_cache ) && ON == $g_allow_browser_cache ) { + switch ( $t_browser_name ) { +- #case 'IE': +- # header( 'Cache-Control: private, proxy-revalidate' ); +- # break; ++ case 'IE': ++ header( 'Cache-Control: private, proxy-revalidate' ); ++ break; + default: + header( 'Cache-Control: private, must-revalidate' ); + break; +@@ -172,6 +172,7 @@ + } + + header( 'Expires: ' . gmdate( 'D, d M Y H:i:s \G\M\T', time() ) ); ++ header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s \G\M\T', time() ) ); + + # SEND USER-DEFINED HEADERS + foreach( config_get( 'custom_headers' ) as $t_header ) { diff --git a/www-apps/mantisbt/files/mantisbt-1.1.5-extensions.patch b/www-apps/mantisbt/files/mantisbt-1.1.5-extensions.patch new file mode 100644 index 000000000000..3e13e8007a25 --- /dev/null +++ b/www-apps/mantisbt/files/mantisbt-1.1.5-extensions.patch @@ -0,0 +1,21 @@ +From: John Reese <jreese@leetcode.net> +Date: Tue, 25 Nov 2008 19:54:32 +0000 (-0500) +Subject: Fix #9890: improper comparison of file extensions in file_download.php +X-Git-Url: http://git.mantisbt.org/?p=mantisbt.git;a=commitdiff_plain;h=99903fda7b565afc30a9ae9e37f9cae2053430ff + +Fix #9890: improper comparison of file extensions in file_download.php +--- + +diff --git a/file_download.php b/file_download.php +index 067b03a..8074cc4 100644 +--- a/file_download.php ++++ b/file_download.php +@@ -91,7 +91,7 @@ + header( 'Content-Length: ' . $v_filesize ); + $t_filename = file_get_display_name( $v_filename ); + $t_inline_files = explode(',', config_get('inline_file_exts', 'gif')); +- if ( in_array( file_get_extension($t_filename), $t_inline_files ) ) { ++ if ( in_array( strtolower( file_get_extension($t_filename) ), $t_inline_files ) ) { + $t_disposition = ''; //'inline;'; + } else { + $t_disposition = ' attachment;'; |