From d7b9b8198737fda24eaa0659fae199d934e0bc83 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 30 Apr 2007 20:53:31 +0000 Subject: [PATCH] * (bug 7629) Fix $wgBrowserBlackList to avoid false positive on MSIE when certain plugins are present which alter the user agent --- RELEASE-NOTES | 2 ++ includes/DefaultSettings.php | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index cae552f0b0..d6c82fdcb7 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -369,6 +369,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN - don't emit too many list close tags after an invisible header - don't emit too many final list close tags if last header is invisible - don't emit TOC when there are no visible headers +* (bug 7629) Fix $wgBrowserBlackList to avoid false positive on MSIE + when certain plugins are present which alter the user agent == Maintenance == diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 35189151b3..a8733e138f 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1962,9 +1962,9 @@ $wgBrowserBlackList = array( * * Reference: http://www.psychedelix.com/agents/index.shtml */ - '/^Mozilla\/2\.[^ ]+ .*?\((?!compatible).*; [UIN]/', - '/^Mozilla\/3\.[^ ]+ .*?\((?!compatible).*; [UIN]/', - '/^Mozilla\/4\.[^ ]+ .*?\((?!compatible).*; [UIN]/', + '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', + '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', + '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', /** * MSIE on Mac OS 9 is teh sux0r, converts þ to , ð to , Þ to and Ð to -- 2.20.1