Fixed minor annoyance when magic_quotes_gpc was enabled in the result messages within the admin center

This commit is contained in:
Andre Lorbach 2008-10-24 15:22:14 +02:00
parent 3b49279a8a
commit f8d2306fa7
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ else
} }
if ( isset($_GET['msg']) ) if ( isset($_GET['msg']) )
$content['SZMSG'] = urldecode($_GET['msg']); $content['SZMSG'] = DB_StripSlahes($_GET['msg']);
else else
$content['SZMSG'] = $content["LN_ADMIN_UNKNOWNSTATE"]; $content['SZMSG'] = $content["LN_ADMIN_UNKNOWNSTATE"];

View File

@ -266,7 +266,7 @@ function DB_RemoveBadChars($myString, $dbEngine = DB_MYSQL)
function DB_StripSlahes($myString) function DB_StripSlahes($myString)
{ {
// Replace with internal PHP Functions! // Replace with internal PHP Functions!
if ( !get_magic_quotes_gpc() ) if ( get_magic_quotes_gpc() )
return stripslashes($myString); return stripslashes($myString);
else else
return $myString; return $myString;