From 542a2d103b82ca6d4e765cd09caa407ea2a7586a Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 11 Aug 2006 06:12:15 +0000 Subject: [PATCH] Only stripslashes from strings git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4477 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_plugin.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 3ebd529b9..d1af40e85 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -264,7 +264,7 @@ class plugin foreach ($this->attributes as $val){ if (chkacl ($this->acl, "$val") == "" && isset ($_POST["$val"])){ /* Check for modifications */ - if (get_magic_quotes_gpc()) { + if ((get_magic_quotes_gpc()) && !is_array($_POST["$val"])) { $data= stripcslashes($_POST["$val"]); } else { $data= $this->$val = $_POST["$val"]; -- 2.30.2