From: hickert Date: Thu, 8 Jul 2010 11:13:59 +0000 (+0000) Subject: Updated special char handling for scripts X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=30ad5a8f49534779eae5dee950f4ab1cdc45a4e7;p=gosa.git Updated special char handling for scripts git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18962 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiScriptEntry.inc b/gosa-plugins/fai/admin/fai/class_faiScriptEntry.inc index b4da90ddb..33c38f35d 100644 --- a/gosa-plugins/fai/admin/fai/class_faiScriptEntry.inc +++ b/gosa-plugins/fai/admin/fai/class_faiScriptEntry.inc @@ -68,7 +68,7 @@ class faiScriptEntry extends plugin foreach($this->attributes as $attrs){ $smarty->assign($attrs, htmlentities($this->$attrs, ENT_QUOTES, 'utf-8')); } - $smarty->assign('FAIscript', htmlentities($this->FAIscript)); + $smarty->assign('FAIscript', htmlentities($this->FAIscript, ENT_QUOTES, 'utf-8')); /* File download requested */ if(isset($_POST['download'])){ @@ -99,11 +99,9 @@ class faiScriptEntry extends plugin /* Save data to object */ function save_object() { - return; if((isset($_POST['SubObjectFormSubmitted'])) && !preg_match("/freeze/", $this->FAIstate)){ foreach($this->attributes as $attrs){ if($this->acl_is_writeable($attrs)){ - if(isset($_POST[$attrs])){ $this->$attrs = get_binary_post($attrs); }else{