From 75e6e79ddb7ada249ac8193684e3dd0af9723c5e Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Fri, 2 Jan 2004 01:42:23 +0000 Subject: [PATCH] added stripslashes when magic qoutes is on --- phpgwapi/inc/common_functions.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index d2c942be00..350974a8aa 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -508,6 +508,10 @@ $value = $GLOBALS[$meth][$varname]; $i = $cnt+1; } + if(get_magic_quotes_gpc()) + { + $value = stripslashes($value); + } break; case 'FILES': if(phpversion() >= '4.1.0')