From f8d2306fa76f3438f6dd9034082f454513c8d739 Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Fri, 24 Oct 2008 15:22:14 +0200 Subject: [PATCH] Fixed minor annoyance when magic_quotes_gpc was enabled in the result messages within the admin center --- src/admin/result.php | 2 +- src/include/functions_db.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/admin/result.php b/src/admin/result.php index adf271f..10977e7 100644 --- a/src/admin/result.php +++ b/src/admin/result.php @@ -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"]; diff --git a/src/include/functions_db.php b/src/include/functions_db.php index 26e2d03..2629e98 100644 --- a/src/include/functions_db.php +++ b/src/include/functions_db.php @@ -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;