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

Revision: 54987
Author:   brion
Date:     2009-08-14 00:36:42 +0000 (Fri, 14 Aug 2009)

Log Message:
-----------
Fixed double-escaping bug in ConfEditor's handling of double-quoted strings.
For some reason it was *re-escaping* single-quoted strings; this would lead to 
corruption in LocalisationUpdate.

Modified Paths:
--------------
    trunk/phase3/includes/ConfEditor.php

Modified: trunk/phase3/includes/ConfEditor.php
===================================================================
--- trunk/phase3/includes/ConfEditor.php        2009-08-14 00:06:12 UTC (rev 
54986)
+++ trunk/phase3/includes/ConfEditor.php        2009-08-14 00:36:42 UTC (rev 
54987)
@@ -310,8 +310,7 @@
                                array( '\\\'' => '\'', '\\\\' => '\\' ) );
                if ( $str !== '' && @$str[0] == '"' )
                        // Double-quoted string
-                       return strtr( stripcslashes( substr( $str, 1, -1 ) ),
-                                array( '\'' => '\\\'' ) );
+                       return stripcslashes( substr( $str, 1, -1 ) );
                if ( substr( $str, 0, 4 ) == 'true' )
                        return true;
                if ( substr( $str, 0, 5 ) == 'false' )



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

Reply via email to