Manual:$wgBrowserBlackList/ru

This page is a translated version of the page Manual:$wgBrowserBlackList and the translation is 37% complete.
Language, regional and character encoding settings: $wgBrowserBlackList
Черный список браузеров, не поддерживающих Unicode.
Введено в версии:1.4.0 (r5793)
Устарела с версии:1.30.0 (Gerrit change 374422; git #I20c2e39)
Удалено в версии:1.32.0 (Gerrit change 443759; git #If796e77)
Допустимые значения:(массив регулярных выражений)
Значение по умолчанию:см. ниже

Детали

Черный список браузеров, не поддерживающих Unicode. Содержит список регулярных выражений : "/regexp/" , соответствующих проблемным браузерам. Если user-agent браузера соответствует одному из таких регулярных выражений, при редактировании используется поле "safemode" (подробнее см. safemode item в Parameters to index.php#Optional additional data).

Значения по умолчанию

Версии MediaWiki:
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:
1.11 – 1.29
$wgBrowserBlackList = array(
    /**
     * Netscape 2-4 detection
     * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
     * Lots of non-netscape user agents have "compatible", so it's useful to check for that with a negative assertion. The [UIN] identifier specifies the level of security in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
     * The language string is unreliable, it is missing on NS4 Mac.
     * 
     * Reference: http://www.psychedelix.com/agents/index.shtml
     */
    '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
    '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
    '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
    
    /**
     * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
     *
     * Known useragents:
     * - 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\)/',
    
    /**
     * Google wireless transcoder, seems to eat a lot of chars alive
     * 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;\)/'
);

Изменения между этой и предыдущей версией:

  • Были изменены регулярные выражения для обнаружения Netscape 2-4.
  • Было добавлено регулярное выражение Google Wireless Transcoder.
Версии MediaWiki:
1.7 – 1.10
$wgBrowserBlackList = array(
	/**
	 * Netscape 2-4 detection
	 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
	 * Lots of non-netscape user agents have "compatible", so it's useful to check for that with a negative assertion. The [UIN] identifier specifies the level of security in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
	 * The language string is unreliable, it is missing on NS4 Mac.
	 * 
	 * Reference: http://www.psychedelix.com/agents/index.shtml
	 */
	'/^Mozilla\/2\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
	'/^Mozilla\/3\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
	'/^Mozilla\/4\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
	
	/**
	 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
	 *
	 * Known useragents:
	 * - 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:
1.4 – 1.6

От 1.4.1 до 1.6.10, эта настройка имела следущее значение по умолчанию:

$wgBrowserBlackList = array(
    "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/",
    /**
     * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
     *
     * Known useragents:
     * - 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:
1.4

В версии 1.4.0, эта настройка имела следущее значение по умолчанию:

$wgBrowserBlackList = array(
        "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/"
        // FIXME: Add some accurate, true things here
        );