From c9e066f486e013a8c25e66fa2f74dfc71343cb18 Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Wed, 22 Oct 2008 16:13:16 +0200 Subject: [PATCH] Corrected the check for magic_quotes_gpc which is important to know when configuration values are saved into the DB --- src/include/functions_db.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/functions_db.php b/src/include/functions_db.php index b39afd1..d70302b 100644 --- a/src/include/functions_db.php +++ b/src/include/functions_db.php @@ -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;