summaryrefslogtreecommitdiffstats
path: root/lib/class/session.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/session.class.php')
-rw-r--r--lib/class/session.class.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/class/session.class.php b/lib/class/session.class.php
index 7d7a4b59..68bc16e4 100644
--- a/lib/class/session.class.php
+++ b/lib/class/session.class.php
@@ -380,27 +380,21 @@ class Session {
* ungimp_ie
*
* This function sets the cache limiting to public if you are running
- * some flavor of IE. The detection used here is very conservative so
- * feel free to fix it. This only has to be done if we're rolling HTTPS.
+ * some flavor of IE and not using HTTPS.
*/
public static function ungimp_ie() {
-
// If no https, no ungimpage required
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'on') {
return true;
}
- // Try to detect IE
- $agent = trim($_SERVER['HTTP_USER_AGENT']);
-
- if ((strpos($agent, 'MSIE') !== false) ||
- (strpos($agent,'Internet Explorer/') !== false)) {
+ $browser = new Horde_Browser();
+ if ($browser->isBrowser('msie')) {
session_cache_limiter('public');
}
return true;
-
- } // ungimp_ie
+ }
}
?>