From d26fb6276e70ed43c650887084ec0af41749e88a Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 29 Jun 2011 17:37:57 +0200 Subject: [PATCH] Backslash is special with LIKE (bug #3344307) --- adminer/include/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index ac62e624..dcdb5312 100644 --- a/adminer/include/functions.inc.php +++ b/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) {