Till Brehm
2014-08-25 4db6b4febf26bfa987ef741b0271ee44e5fb462e
Merge branch 'stable-3.0.5' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.0.5
1 files modified
2 ■■■ changed files
interface/lib/classes/db_mysql.inc.php 2 ●●● patch | view | raw | blame | history
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) {