Till Brehm
2014-08-25 4db6b4febf26bfa987ef741b0271ee44e5fb462e
interface/lib/classes/db_mysql.inc.php
@@ -138,7 +138,7 @@
            $chars = array(';', '#', '/*', '*/', '--', ' UNION ', '\\\'', '\\"');
      
            $string = str_replace('\\\\', '', $string);
            $string = preg_replace('/(^|[^\\\])([\'"])(.*?[^\\\])\\2/is', '$1', $string);
            $string = preg_replace('/(^|[^\\\])([\'"])(.*?[^\\\]?)\\2/is', '$1', $string);
            $ok = true;
            if(substr_count($string, "`") % 2 != 0 || substr_count($string, "'") % 2 != 0 || substr_count($string, '"') % 2 != 0) {