# the generated page would be proportional to the square of the input size.
# Hence, we limit the number of inclusions of any given page, thus bringing any
# attack back to O(N).
-define( "MAX_INCLUDE_REPEAT", 20 );
+define( "MAX_INCLUDE_REPEAT", 100 );
define( "MAX_INCLUDE_SIZE", 1000000 ); // 1 Million
# Allowed values for $mOutputType
$fixtags = array(
# french spaces, last one Guillemet-left
# only if there is something before the space
- '/(.) (\\?|:|;|!|\\302\\273)/i' => '\\1 \\2',
+ '/ (?=\\?|:|;|!|\\302\\273)/' => ' \\1',
+ '/(\d) (?=\d{3}\D)/' => '\\1 \\2',
# french spaces, Guillemet-right
- "/(\\302\\253) /i"=>"\\1 ",
+ "/(\\302\\253) /"=>"\\1 ",
'/<hr *>/i' => '<hr />',
'/<br *>/i' => '<br />',
'/<center *>/i' => '<div class="center">',
} else {
$fixtags = array(
# french spaces, last one Guillemet-left
- '/ (\\?|:|;|!|\\302\\273)/i' => ' \\1',
+ '/ (?=\\?|:|;|!|\\302\\273)/' => ' \\1',
+ '/(\d) (?=\d{3}\D)/' => '\\1 \\2',
# french spaces, Guillemet-right
- '/(\\302\\253) /i' => '\\1 ',
+ '/(\\302\\253) /' => '\\1 ',
'/([^> ]+(0(1|3|9);)[^< ]*)/i' => '<span class="diacrit">\\1</span>',
'/<center *>/i' => '<div class="center">',
'/<\\/center *>/i' => '</div>'