Index: file_download.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/file_download.php,v
retrieving revision 1.38
diff -u -r1.38 file_download.php
--- file_download.php	28 Mar 2006 02:05:25 -0000	1.38
+++ file_download.php	2 May 2007 07:19:26 -0000
@@ -91,7 +91,8 @@
 	# attached files via HTTPS, we disable the "Pragma: no-cache"
 	# command when IE is used over HTTPS.
 	global $g_allow_file_cache;
-	if ( ( isset( $_SERVER["HTTPS"] ) && "on" == $_SERVER["HTTPS"] ) && preg_match( "/MSIE/", $_SERVER["HTTP_USER_AGENT"] ) ) {
+	
+	if ( ( isset( $_SERVER["HTTPS"] ) && "on" == strtolower($_SERVER["HTTPS"]) ) && preg_match( "/MSIE/", $_SERVER["HTTP_USER_AGENT"] ) ) {
 		# Suppress "Pragma: no-cache" header.
 	} else {
 		if ( ! isset( $g_allow_file_cache ) ) {
