Till Brehm
2014-09-22 f02be96750e48859cc63f1f2b64a86a9202178b4
interface/lib/classes/db_mysql.inc.php
@@ -138,7 +138,8 @@
            $chars = array(';', '#', '/*', '*/', '--', ' UNION ', '\\\'', '\\"');
      
            $string = str_replace('\\\\', '', $string);
            $string = preg_replace('/(^|[^\\\])([\'"])(.*?[^\\\]?)\\2/is', '$1', $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) {