Revision: 2340
http://mrbs.svn.sourceforge.net/mrbs/?rev=2340&view=rev
Author: cimorrison
Date: 2012-07-19 06:57:38 +0000 (Thu, 19 Jul 2012)
Log Message:
-----------
Added an HTTP header to prevent IE going into Compatibility View
Modified Paths:
--------------
mrbs/trunk/web/Themes/default/header.inc
mrbs/trunk/web/functions.inc
Modified: mrbs/trunk/web/Themes/default/header.inc
===================================================================
--- mrbs/trunk/web/Themes/default/header.inc 2012-07-18 13:08:45 UTC (rev
2339)
+++ mrbs/trunk/web/Themes/default/header.inc 2012-07-19 06:57:38 UTC (rev
2340)
@@ -45,6 +45,9 @@
}
header("Content-Type: text/html; charset=" . get_charset());
+ // We want to prevent IE8 offering "Compatability View" as that really
+ // messes up MRBS, especially on the Report page
+ header("X-UA-Compatible: IE=Edge");
header("Pragma: no-cache"); // HTTP 1.0
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
echo DOCTYPE;
@@ -52,8 +55,9 @@
<html>
<head>
+
+ <title><?php echo get_vocab("mrbs") ?></title>
<meta charset="<?php echo get_charset(); ?>">
- <title><?php echo get_vocab("mrbs") ?></title>
<?php
require_once "style.inc";
Modified: mrbs/trunk/web/functions.inc
===================================================================
--- mrbs/trunk/web/functions.inc 2012-07-18 13:08:45 UTC (rev 2339)
+++ mrbs/trunk/web/functions.inc 2012-07-19 06:57:38 UTC (rev 2340)
@@ -93,6 +93,7 @@
}
header("Content-Type: text/html; charset=" . get_charset());
+ header("X-UA-Compatible: IE=Edge");
header("Pragma: no-cache"); // HTTP 1.0
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
echo DOCTYPE;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits