From: Purodha B Blissenbach Date: Wed, 11 Feb 2009 11:56:01 +0000 (+0000) Subject: Bugfis, making ?uselang=qqq an invalid language code, see X-Git-Tag: 1.31.0-rc.0~42937 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=56c2036f1e780e4ede9e83f803fdf57929daacfb;p=lhc%2Fweb%2Fwiklou.git Bugfis, making ?uselang=qqq an invalid language code, see https://bugzilla.wikimedia.org/show_bug.cgi?id=17445 --- diff --git a/includes/StubObject.php b/includes/StubObject.php index e27f0b2554..f1847a39ee 100644 --- a/includes/StubObject.php +++ b/includes/StubObject.php @@ -154,7 +154,7 @@ class StubUserLang extends StubObject { } # Validate $code - if( empty( $code ) || !preg_match( '/^[a-z-]+$/', $code ) ) { + if( empty( $code ) || !preg_match( '/^[a-z-]+$/', $code ) || ( $code === 'qqq' ) ) { wfDebug( "Invalid user language code\n" ); $code = $wgContLanguageCode; }