MAX_INCLUDE_REPEAT 5 => 20
authorGuillaume Blanchard <aoineko_jp@users.mediawiki.org>
Fri, 13 Aug 2004 14:15:21 +0000 (14:15 +0000)
committerGuillaume Blanchard <aoineko_jp@users.mediawiki.org>
Fri, 13 Aug 2004 14:15:21 +0000 (14:15 +0000)
Fix non-breaking space before ';'

includes/Parser.php

index 7aac8e7..b8f3cce 100644 (file)
@@ -30,7 +30,7 @@
 # of inclusions of any given page, thus bringing any attack back to O(N).
 #
 
-define( "MAX_INCLUDE_REPEAT", 5 );
+define( "MAX_INCLUDE_REPEAT", 20 );
 define( "MAX_INCLUDE_SIZE", 1000000 ); // 1 Million
 
 # Allowed values for $mOutputType
@@ -143,7 +143,7 @@ class Parser
                } else {
                        $fixtags = array(
                                # french spaces, last one Guillemet-left
-                               '/ (\\?|:|!|\\302\\273)/i' => '&nbsp;\\1',
+                               '/ (\\?|:|;|!|\\302\\273)/i' => '&nbsp;\\1',
                                # french spaces, Guillemet-right
                                '/(\\302\\253) /i' => '\\1&nbsp;',
                                '/([^> ]+(&#x30(1|3|9);)[^< ]*)/i' => '<span class="diacrit">\\1</span>',