Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -1620,8 +1620,9 @@ |
1621 | 1621 | * Escape string for safe LIKE usage |
1622 | 1622 | */ |
1623 | 1623 | function escapeLike( $s ) { |
| 1624 | + $s=str_replace('\\','\\\\',$s); |
1624 | 1625 | $s=$this->strencode( $s ); |
1625 | | - $s=str_replace(array('%','_','\\'),array('\%','\_','\\\\'),$s); |
| 1626 | + $s=str_replace(array('%','_'),array('\%','\_'),$s); |
1626 | 1627 | return $s; |
1627 | 1628 | } |
1628 | 1629 | |