Language, regional and character encoding settings: $wgBrowserBlackList
Browser blacklist for non-Unicode-compliant browsers.
Introduced in version:1.4.0 (r5793)
Deprecated in version:1.30.0 (Gerrit change 374422; git #I20c2e39)
Removed in version:1.32.0 (Gerrit change 443759; git #If796e77)
Allowed values:(array of regular expressions)
Default value:see below

Details

Browser Blacklist for unicode non compliant browsers. Contains a list of regexps: "/regexp/" matching problematic browsers. If the user-agent of a browser matches one such regex, the "safemode" field is used when editing (see the safemode item in Manual:Parameters to index.php for details).

Default values

MediaWiki versions:
1.30 1.31

In MediaWiki 1.30, a feature test is used to check whether browsers can correctly round-trip Unicode characters:

$wgBrowserBlackList = [];
MediaWiki versions:
1.11 1.29
$wgBrowserBlackList = array(
    /**
     * <translate nowrap><!--T:11--> Netscape 2-4 detection</translate>
     * <translate nowrap><!--T:12--> The minor version may contain strings such as "Gold" or "SGoldC-SGI"</translate>
     * <translate nowrap><!--T:13--> Lots of non-netscape user agents have "compatible", so it's useful to check for that with a negative assertion.</translate> <translate nowrap><!--T:14--> The [UIN] identifier specifies the level of security in a Netscape/Mozilla browser, checking for it rules out a number of fakers.</translate>
     * <translate nowrap><!--T:15--> The language string is unreliable, it is missing on NS4 Mac.</translate>
     * 
     * <translate nowrap><!--T:16--> Reference:</translate> http://www.psychedelix.com/agents/index.shtml
     */
    '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
    '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
    '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
    
    /**
     * <translate nowrap><!--T:17--> MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH></translate>
     *
     * <translate nowrap><!--T:18--> Known useragents:</translate>
     * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
     * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
     * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
     * - [...]
     *
     * @link https://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
     * @link https://en.wikipedia.org/wiki/Template%3AOS9
     */
    '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
    
    /**
     * <translate nowrap><!--T:19--> Google wireless transcoder, seems to eat a lot of chars alive</translate>
     * http://it.wikipedia.org/w/index.php?title=Luciano_Ligabue&diff=prev&oldid=8857361
     */
    '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
);

The changes between this and the previous version are:

  • There was a change to regexes for Netscape 2-4 detection.
  • The Google Wireless Transcoder regex was added.
MediaWiki versions:
1.7 1.10
$wgBrowserBlackList = array(
	/**
	 * <translate nowrap><!--T:24--> Netscape 2-4 detection</translate>
	 * <translate nowrap><!--T:25--> The minor version may contain strings such as "Gold" or "SGoldC-SGI"</translate>
	 * <translate nowrap><!--T:26--> Lots of non-netscape user agents have "compatible", so it's useful to check for that with a negative assertion.</translate> <translate nowrap><!--T:27--> The [UIN] identifier specifies the level of security in a Netscape/Mozilla browser, checking for it rules out a number of fakers.</translate>
	 * <translate nowrap><!--T:28--> The language string is unreliable, it is missing on NS4 Mac.</translate>
	 * 
	 * <translate nowrap><!--T:29--> Reference:</translate> http://www.psychedelix.com/agents/index.shtml
	 */
	'/^Mozilla\/2\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
	'/^Mozilla\/3\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
	'/^Mozilla\/4\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
	
	/**
	 * <translate nowrap><!--T:30--> MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH></translate>
	 *
	 * <translate nowrap><!--T:31--> Known useragents:</translate>
	 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
	 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
	 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
	 * - [...]
	 *
	 * @link https://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
	 * @link https://en.wikipedia.org/wiki/Template%3AOS9
	 */
	'/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/'
);
MediaWiki versions:
1.4 1.6

From 1.4.1 to 1.6.10, this setting had the following default values:

$wgBrowserBlackList = array(
    "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/",
    /**
     * <translate nowrap><!--T:34--> MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH></translate>
     *
     * <translate nowrap><!--T:35--> Known useragents:</translate>
     * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
     * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
     * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
     * - [...]
     *
     * @link https://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
     * @link https://en.wikipedia.org/wiki/Template%3AOS9
     */
    "/Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/"
    );
MediaWiki version:
1.4

In 1.4.0, this setting had the following default value:

$wgBrowserBlackList = array(
        "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/"
        // <translate nowrap><!--T:38--> FIXME: Add some accurate, true things here</translate>
        );
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.