Index: branches/REL1_17/phase3/languages/Language.php |
— | — | @@ -192,7 +192,7 @@ |
193 | 193 | * not it exists. |
194 | 194 | */ |
195 | 195 | public static function isValidCode( $code ) { |
196 | | - return (bool)preg_match( '/^[a-z-]+$/', $code ); |
| 196 | + return strcspn( $code, "/\\\000" ) === strlen( $code ); |
197 | 197 | } |
198 | 198 | |
199 | 199 | /** |
Property changes on: branches/REL1_17/phase3/languages/Language.php |
___________________________________________________________________ |
Added: svn:mergeinfo |
200 | 200 | Merged /branches/REL1_17/phase3/languages/Language.php:r81340 |
201 | 201 | Merged /branches/sqlite/languages/Language.php:r58211-58321 |
202 | 202 | Merged /trunk/phase3/languages/Language.php:r79828,79830,79848,79853,79950-79951,79954,79989,80006-80007,80013,80016,80080,80083,80124,80128,80238,81340 |
203 | 203 | Merged /branches/new-installer/phase3/languages/Language.php:r43664-66004 |
204 | 204 | Merged /branches/REL1_15/phase3/languages/Language.php:r51646 |