From: Brion Vibber Date: Sun, 22 Aug 2004 09:57:12 +0000 (+0000) Subject: Remove what seems to be an accidentally checked-in testing line: X-Git-Tag: 1.5.0alpha1~2254 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=16514740cffd676a12457fa6b3ac2f0127fadc05;p=lhc%2Fweb%2Fwiklou.git Remove what seems to be an accidentally checked-in testing line: '/([^> ]+(0(1|3|9);)[^< ]*)/i' => '\\1', (Originally added by gwicke in revision 1.197) With very long 'words' this regexp is super slow, and causes timeouts: Bug 183: timeout in Parser.php with Tidy http://bugzilla.wikipedia.org/show_bug.cgi?id=183 --- diff --git a/includes/Parser.php b/includes/Parser.php index 369f04f759..071df0705a 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -146,7 +146,6 @@ class Parser '/ (\\?|:|;|!|\\302\\273)/i' => ' \\1', # french spaces, Guillemet-right '/(\\302\\253) /i' => '\\1 ', - '/([^> ]+(0(1|3|9);)[^< ]*)/i' => '\\1', '/
/i' => '
', '/<\\/center *>/i' => '
' );