Disallow qqq as interface language
authorNiklas Laxström <niklas.laxstrom@gmail.com>
Tue, 7 Jul 2015 12:44:49 +0000 (14:44 +0200)
committerAmire80 <amir.aharoni@mail.huji.ac.il>
Wed, 22 Jul 2015 21:06:22 +0000 (21:06 +0000)
commitbe03b796fa570d5e8a3a15687a42a72df667b8d3
treeafcbad3d60b3aba0b539e583d0d12da6bd46d1f8
parent458e7b287c01a429505a84f08683e955683bcc3f
Disallow qqq as interface language

Any page on translatewiki with param setlang=qqq times out. All messages
get parsed recursively until parser-template-loop-warning is reached.
uselang=qqq is already ignored, see RequestContext::sanitizeLangCode.

There is a counterpart to this patch in ULS, where it is changed
to use Language::isSupportedLanguage.

Bug: T104987
Change-Id: Ie77fe18681dfd5f9089fbaa8090dd9cc1c206da4
languages/Language.php