X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=languages%2FLanguage.php;h=2e4ef89c5c5d7ffc3b1a48cf1df3dfb78c3c20a9;hb=7874fc4bec845ad92960b07e969c65f3c3fe74f2;hp=ab7220cdcc366d36cda0ccb744673c40c78f0457;hpb=891262fa8383d818655198e2a61cc1c0dfebb57b;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/Language.php b/languages/Language.php index ab7220cdcc..2e4ef89c5c 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -338,7 +338,7 @@ class Language { // People think language codes are html safe, so enforce it. // Ideally we should only allow a-zA-Z0-9- // but, .+ and other chars are often used for {{int:}} hacks - // see bugs 37564, 37587, 36938 + // see bugs T39564, T39587, T38938 $cache[$code] = // Protect against path traversal strcspn( $code, ":/\\\000&<>'\"" ) === strlen( $code ) @@ -3759,6 +3759,7 @@ class Language { * but uses pairs of regexes and replacements instead of code. * * @return array[] Array of grammar transformations. + * @throws MWException * @since 1.28 */ public function getGrammarTransformations() {