Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Zvonimir
ISPConfig 3
Commits
0e41dea8
Commit
0e41dea8
authored
Aug 13, 2014
by
Marius Cramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- disallow ` in table names when using ?? placeholder in query
parent
587fe4ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
interface/lib/classes/db_mysql.inc.php
interface/lib/classes/db_mysql.inc.php
+2
-1
No files found.
interface/lib/classes/db_mysql.inc.php
View file @
0e41dea8
...
...
@@ -126,7 +126,8 @@ class db extends mysqli
if
(
$iPos2
!==
false
&&
(
$iPos
===
false
||
$iPos2
<=
$iPos
))
{
$sTxt
=
$this
->
escape
(
$sValue
);
$sTxt
=
str_replace
(
'`'
,
''
,
$sTxt
);
if
(
strpos
(
$sTxt
,
'.'
)
!==
false
)
$sTxt
=
preg_replace
(
'/^(.+)\.(.+)$/'
,
'`$1`.`$2`'
,
$sTxt
);
else
$sTxt
=
'`'
.
$sTxt
.
'`'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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