X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWebRequest.php;h=d5b081e624a2e05c71e28fc4498d0b714f99e6b1;hb=af5106db4bce30caf1c48268a7cb551000e37ef1;hp=ed10615b0c1e9a5ab803e742dde7731efd727a60;hpb=8bc630cead937718d6e6bcb6e32c5c539d6ad305;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebRequest.php b/includes/WebRequest.php index ed10615b0c..d5b081e624 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -387,12 +387,10 @@ class WebRequest { $name = strtr( $name, '.', '_' ); if ( isset( $arr[$name] ) ) { $data = $arr[$name]; - if ( isset( $_GET[$name] ) && !is_array( $data ) ) { + if ( isset( $_GET[$name] ) && is_string( $data ) ) { # Check for alternate/legacy character encoding. $contLang = MediaWikiServices::getInstance()->getContentLanguage(); - if ( $contLang ) { - $data = $contLang->checkTitleEncoding( $data ); - } + $data = $contLang->checkTitleEncoding( $data ); } $data = $this->normalizeUnicode( $data ); return $data; @@ -1309,7 +1307,7 @@ HTML; * * This means that the client is not requesting any state changes and that database writes * are not inherently required. Ideally, no visible updates would happen at all. If they - * must, then they should not be publically attributed to the end user. + * must, then they should not be publicly attributed to the end user. * * In more detail: * - Cache populations and refreshes MAY occur.