Index: trunk/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php |
— | — | @@ -25,11 +25,11 @@ |
26 | 26 | $text = trim( $text ); |
27 | 27 | // Validate language |
28 | 28 | if( isset( $args['lang'] ) ) { |
29 | | - $lang = $args['lang']; |
| 29 | + $lang = strtolower( $args['lang'] ); |
30 | 30 | } else { |
31 | 31 | return self::formatError( htmlspecialchars( wfMsgForContent( 'syntaxhighlight-err-language' ) ) ); |
32 | 32 | } |
33 | | - if( !preg_match( '/^[A-Za-z_0-9-]*$/', $lang ) ) |
| 33 | + if( !preg_match( '/^[a-z_0-9-]*$/', $lang ) ) |
34 | 34 | return self::formatError( htmlspecialchars( wfMsgForContent( 'syntaxhighlight-err-language' ) ) ); |
35 | 35 | $geshi = self::prepare( $text, $lang ); |
36 | 36 | if( !$geshi instanceof GeSHi ) |