mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-25 18:59:12 +02:00
Corrected the check for magic_quotes_gpc which is important to know when configuration values are saved into the DB
This commit is contained in:
parent
0256ace844
commit
c9e066f486
@ -246,7 +246,7 @@ function DB_RemoveBadChars($myString, $dbEngine = DB_MYSQL)
|
||||
else
|
||||
{
|
||||
// Replace with internal PHP Functions!
|
||||
if ( !get_magic_quotes_runtime() )
|
||||
if ( !get_magic_quotes_gpc() )
|
||||
return addslashes($myString);
|
||||
// return addcslashes($myString, "'");
|
||||
else
|
||||
@ -263,7 +263,7 @@ function DB_RemoveBadChars($myString, $dbEngine = DB_MYSQL)
|
||||
function DB_StripSlahes($myString)
|
||||
{
|
||||
// Replace with internal PHP Functions!
|
||||
if ( !get_magic_quotes_runtime() )
|
||||
if ( !get_magic_quotes_gpc() )
|
||||
return stripslashes($myString);
|
||||
else
|
||||
return $myString;
|
||||
|
Loading…
x
Reference in New Issue
Block a user