Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Webslice
ISPConfig 3
Commits
ded71be4
Commit
ded71be4
authored
7 years ago
by
Till Brehm
Browse files
Options
Downloads
Patches
Plain Diff
Changed LOGLEVEL_INFO to LOGLEVEL_DEBUG in db_mysql.inc.php
parent
0ce3c7b9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
interface/lib/classes/db_mysql.inc.php
+2
-2
2 additions, 2 deletions
interface/lib/classes/db_mysql.inc.php
with
2 additions
and
2 deletions
interface/lib/classes/db_mysql.inc.php
+
2
−
2
View file @
ded71be4
...
@@ -472,7 +472,7 @@ class db {
...
@@ -472,7 +472,7 @@ class db {
public
function
escape
(
$sString
)
{
public
function
escape
(
$sString
)
{
global
$app
;
global
$app
;
if
(
!
is_string
(
$sString
)
&&
!
is_numeric
(
$sString
))
{
if
(
!
is_string
(
$sString
)
&&
!
is_numeric
(
$sString
))
{
$app
->
log
(
'NON-String given in escape function! ('
.
gettype
(
$sString
)
.
')'
,
LOGLEVEL_
INFO
);
$app
->
log
(
'NON-String given in escape function! ('
.
gettype
(
$sString
)
.
')'
,
LOGLEVEL_
DEBUG
);
//$sAddMsg = getDebugBacktrace();
//$sAddMsg = getDebugBacktrace();
$app
->
log
(
$sAddMsg
,
LOGLEVEL_DEBUG
);
$app
->
log
(
$sAddMsg
,
LOGLEVEL_DEBUG
);
$sString
=
''
;
$sString
=
''
;
...
@@ -481,7 +481,7 @@ class db {
...
@@ -481,7 +481,7 @@ class db {
$cur_encoding
=
mb_detect_encoding
(
$sString
);
$cur_encoding
=
mb_detect_encoding
(
$sString
);
if
(
$cur_encoding
!=
"UTF-8"
)
{
if
(
$cur_encoding
!=
"UTF-8"
)
{
if
(
$cur_encoding
!=
'ASCII'
)
{
if
(
$cur_encoding
!=
'ASCII'
)
{
if
(
is_object
(
$app
)
&&
method_exists
(
$app
,
'log'
))
$app
->
log
(
'String '
.
substr
(
$sString
,
0
,
25
)
.
'... is '
.
$cur_encoding
.
'.'
,
LOGLEVEL_
INFO
);
if
(
is_object
(
$app
)
&&
method_exists
(
$app
,
'log'
))
$app
->
log
(
'String '
.
substr
(
$sString
,
0
,
25
)
.
'... is '
.
$cur_encoding
.
'.'
,
LOGLEVEL_
DEBUG
);
if
(
$cur_encoding
)
$sString
=
mb_convert_encoding
(
$sString
,
'UTF-8'
,
$cur_encoding
);
if
(
$cur_encoding
)
$sString
=
mb_convert_encoding
(
$sString
,
'UTF-8'
,
$cur_encoding
);
else
$sString
=
mb_convert_encoding
(
$sString
,
'UTF-8'
);
else
$sString
=
mb_convert_encoding
(
$sString
,
'UTF-8'
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment