mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-25 18:59:12 +02:00
Fixed minor annoyance when magic_quotes_gpc was enabled in the result messages within the admin center
This commit is contained in:
parent
3b49279a8a
commit
f8d2306fa7
@ -71,7 +71,7 @@ else
|
||||
}
|
||||
|
||||
if ( isset($_GET['msg']) )
|
||||
$content['SZMSG'] = urldecode($_GET['msg']);
|
||||
$content['SZMSG'] = DB_StripSlahes($_GET['msg']);
|
||||
else
|
||||
$content['SZMSG'] = $content["LN_ADMIN_UNKNOWNSTATE"];
|
||||
|
||||
|
@ -266,7 +266,7 @@ function DB_RemoveBadChars($myString, $dbEngine = DB_MYSQL)
|
||||
function DB_StripSlahes($myString)
|
||||
{
|
||||
// Replace with internal PHP Functions!
|
||||
if ( !get_magic_quotes_gpc() )
|
||||
if ( get_magic_quotes_gpc() )
|
||||
return stripslashes($myString);
|
||||
else
|
||||
return $myString;
|
||||
|
Loading…
x
Reference in New Issue
Block a user