Page MenuHomePhabricator

Nonexistent language "s" causes fatal error when passed as parameter (uselang=s or wpUserLanguage=s)
Closed, ResolvedPublic


Examples: causes a "Wikimedia Foundation Error" with the following message":

"PHP fatal error in /usr/local/apache/common-local/php-1.21wmf12/includes/cache/MessageCache.php line 630:
Call to undefined method languages::getCode()" yields a page with the following text:

[6855416c] 2013-03-30 01:00:28: Fatal exception of type MWException

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Needs Triage.
bzimport set Reference to bz46710.

Oh. Hmm. Should we prohibit one letter language codes?

FWIW, other one-letter codes (e.g ) don't seem to provoke this error.