* (bug 17119) class Parser: senseless use of non-existing regexp back reference
authorSam Reed <reedy@users.mediawiki.org>
Thu, 4 Aug 2011 22:20:52 +0000 (22:20 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 4 Aug 2011 22:20:52 +0000 (22:20 +0000)
Patch made by Dan Collins,, based on text placed by "seth"

includes/parser/Parser.php

index 84cfdaf..56c0368 100644 (file)
@@ -347,7 +347,7 @@ class Parser {
                $fixtags = array(
                        # french spaces, last one Guillemet-left
                        # only if there is something before the space
-                       '/(.) (?=\\?|:|;|!|%|\\302\\273)/' => '\\1&#160;\\2',
+                       '/(.) (?=\\?|:|;|!|%|\\302\\273)/' => '\\1&#160;',
                        # french spaces, Guillemet-right
                        '/(\\302\\253) /' => '\\1&#160;',
                        '/&#160;(!\s*important)/' => ' \\1', # Beware of CSS magic word !important, bug #11874.