Revision: 46285
Author:   nikerabbit
Date:     2009-01-26 21:00:21 +0000 (Mon, 26 Jan 2009)

Log Message:
-----------
* Escape backslashes before normal escaping, to not counteract the effect

Modified Paths:
--------------
    trunk/phase3/includes/db/Database.php

Modified: trunk/phase3/includes/db/Database.php
===================================================================
--- trunk/phase3/includes/db/Database.php       2009-01-26 20:53:12 UTC (rev 
46284)
+++ trunk/phase3/includes/db/Database.php       2009-01-26 21:00:21 UTC (rev 
46285)
@@ -1620,8 +1620,9 @@
         * Escape string for safe LIKE usage
         */
        function escapeLike( $s ) {
+               $s=str_replace('\\','\\\\',$s);
                $s=$this->strencode( $s );
-               $s=str_replace(array('%','_','\\'),array('\%','\_','\\\\'),$s);
+               $s=str_replace(array('%','_'),array('\%','\_'),$s);
                return $s;
        }
 



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to