r55581 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55580‎ | r55581 | r55582 >
Date:18:57, 25 August 2009
Author:simetrical
Status:ok
Tags:
Comment:
Whitespace
Modified paths:
  • /trunk/phase3/includes/db/Database.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/db/Database.php
@@ -1493,9 +1493,9 @@
14941494 * Escape string for safe LIKE usage
14951495 */
14961496 function escapeLike( $s ) {
1497 - $s=str_replace('\\','\\\\',$s);
1498 - $s=$this->strencode( $s );
1499 - $s=str_replace(array('%','_'),array('\%','\_'),$s);
 1497+ $s = str_replace( '\\', '\\\\', $s );
 1498+ $s = $this->strencode( $s );
 1499+ $s = str_replace( array( '%', '_' ), array( '\%', '\_' ), $s );
15001500 return $s;
15011501 }
15021502

Status & tagging log