From: hickert Date: Mon, 12 Jul 2010 05:38:37 +0000 (+0000) Subject: Updated POST handling in class_plugin. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c9e6b56eb600d2bfa876f55e34af390eb29f50ed;p=gosa.git Updated POST handling in class_plugin. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18983 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index 436aee0da..62526a2c3 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -334,12 +334,9 @@ class plugin /* Save values to object */ foreach ($this->attributes as $val){ if (isset ($_POST["$val"]) && $this->acl_is_writeable($val)){ + /* Check for modifications */ - if (get_magic_quotes_gpc()) { - $data= stripcslashes($_POST["$val"]); - } else { - $data= $this->$val = $_POST["$val"]; - } + $data= $this->$val = get_post($val); if ($this->$val != $data){ $this->is_modified= TRUE; } @@ -1449,12 +1446,7 @@ class plugin if (isset ($_POST["$val"]) && $this->acl_is_writeable($val)){ - /* Check for modifications */ - if (get_magic_quotes_gpc()) { - $data= stripcslashes($_POST["$val"]); - } else { - $data= $this->$val = $_POST["$val"]; - } + $data= $this->$val = get_post($val); if ($this->$val != $data){ $this->is_modified= TRUE; }