From: hickert Date: Fri, 11 Aug 2006 06:12:15 +0000 (+0000) Subject: Only stripslashes from strings X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=542a2d103b82ca6d4e765cd09caa407ea2a7586a;p=gosa.git Only stripslashes from strings git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4477 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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"];