restore %ss to working, add unit test so it won't break again

This commit is contained in:
Sergey Tsalkov
2013-06-21 16:27:05 -07:00
parent 3741291f44
commit 740ca7bc67
2 changed files with 2 additions and 2 deletions

View File

@@ -539,7 +539,7 @@ class MeekroDB {
else if ($type == 'd') $result = doubleval($arg);
else if ($type == 'b') $result = $this->formatTableName($arg);
else if ($type == 'l') $result = $arg;
else if ($type == 'ss') $result = "%" . $this->escape(str_replace(array('%', '_'), array('\%', '\_'), $arg)) . "%";
else if ($type == 'ss') $result = $this->escape("%" . str_replace(array('%', '_'), array('\%', '\_'), $arg) . "%");
else if ($type == 't') $result = $this->escape($this->parseTS($arg));
else if ($type == 'ls') $result = array_map(array($this, 'escape'), $arg);