Skip to content
Browse files

Backslash is special with LIKE (bug #3344307)

  • Loading branch information...
1 parent 87137e5 commit d26fb6276e70ed43c650887084ec0af41749e88a @vrana committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/include/functions.inc.php
View
2 adminer/include/functions.inc.php
@@ -278,7 +278,7 @@ function where($where) {
$return = array();
foreach ((array) $where["where"] as $key => $val) {
$return[] = idf_escape(bracket_escape($key, 1)) // 1 - back
- . (ereg('\\.', $val) || $jush == "mssql" ? " LIKE " . exact_value(addcslashes($val, "%_")) : " = " . exact_value($val)) // LIKE because of floats, but slow with ints, in MS SQL because of text
+ . (ereg('\\.', $val) || $jush == "mssql" ? " LIKE " . exact_value(addcslashes($val, "%_\\")) : " = " . exact_value($val)) // LIKE because of floats, but slow with ints, in MS SQL because of text
; //! enum and set
}
foreach ((array) $where["null"] as $key) {

0 comments on commit d26fb62

Please sign in to comment.
Something went wrong with that request. Please try again.