Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
68b1465c
Commit
68b1465c
authored
Oct 16, 2014
by
Till Brehm
Browse files
Changes in SQL injection check of database library.
parent
5049080b
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/db_mysql.inc.php
View file @
68b1465c
...
...
@@ -135,7 +135,7 @@ class db extends mysqli
$string_orig
=
$string
;
//echo $string;
$chars
=
array
(
';'
,
'#'
,
'/*'
,
'*/'
,
'--'
,
' UNION '
,
'\\\''
,
'\\"'
);
$chars
=
array
(
';'
,
'#'
,
'/*'
,
'*/'
,
'--'
,
'\\\''
,
'\\"'
);
$string
=
str_replace
(
'\\\\'
,
''
,
$string
);
$string
=
preg_replace
(
'/(^|[^\\\])([\'"])\\2/is'
,
'$1'
,
$string
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment