Florian Schaal
2015-05-07 77f1ed0adcfa08ad404fe68d0f28a6aa4360342d
interface/lib/classes/db_mysql.inc.php
@@ -128,8 +128,10 @@
               $sTxt = $this->escape($sValue);
               
               $sTxt = str_replace('`', '', $sTxt);
               if(strpos($sTxt, '.') !== false) $sTxt = preg_replace('/^(.+)\.(.+)$/', '`$1`.`$2`', $sTxt);
               else $sTxt = '`' . $sTxt . '`';
               if(strpos($sTxt, '.') !== false) {
                  $sTxt = preg_replace('/^(.+)\.(.+)$/', '`$1`.`$2`', $sTxt);
                  $sTxt = str_replace('.`*`', '.*', $sTxt);
               } else $sTxt = '`' . $sTxt . '`';
               $sQuery = substr_replace($sQuery, $sTxt, $iPos2, 2);
               $iPos2 += strlen($sTxt);