http://www.mediawiki.org/wiki/Special:Code/MediaWiki/54145

Revision: 54145
Author:   ialex
Date:     2009-08-01 12:41:45 +0000 (Sat, 01 Aug 2009)

Log Message:
-----------
Per Nikerabbit's comment on r53897 (i.e. fix for r53832, second attempt): 
changed "m" modifier to "D" so that $ really only matches the end of the string

Modified Paths:
--------------
    trunk/phase3/includes/parser/Parser.php

Modified: trunk/phase3/includes/parser/Parser.php
===================================================================
--- trunk/phase3/includes/parser/Parser.php     2009-08-01 12:32:44 UTC (rev 
54144)
+++ trunk/phase3/includes/parser/Parser.php     2009-08-01 12:41:45 UTC (rev 
54145)
@@ -1705,7 +1705,7 @@
 
                                if ( $ns == NS_CATEGORY ) {
                                        wfProfileIn( __METHOD__."-category" );
-                                       $s = preg_replace( "/(\s*\n)+\s*$/m", 
'', $s ); # bug 87
+                                       $s = preg_replace( "/(\s*\n)+\s*$/D", 
'', $s ); # bug 87
 
                                        if ( $wasblank ) {
                                                $sortkey = 
$this->getDefaultSort();



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to