From: hickert Date: Tue, 18 Oct 2005 12:37:47 +0000 (+0000) Subject: FAI variables can contains quotes now X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8fa1b527dfc96dadcbe002fddbd89bf6d7c37105;p=gosa.git FAI variables can contains quotes now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1606 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiVariableEntry.inc b/plugins/admin/fai/class_faiVariableEntry.inc index 18f635f12..8ab02a2f5 100644 --- a/plugins/admin/fai/class_faiVariableEntry.inc +++ b/plugins/admin/fai/class_faiVariableEntry.inc @@ -46,9 +46,9 @@ class faiVariableEntry extends plugin */ foreach($this->attributes as $attrs){ if(get_magic_quotes_gpc()){ - $smarty->assign($attrs,stripslashes($this->$attrs)); + $smarty->assign($attrs,htmlentities (stripslashes($this->$attrs))); }else{ - $smarty->assign($attrs,($this->$attrs)); + $smarty->assign($attrs,htmlentities (($this->$attrs))); } } @@ -95,7 +95,7 @@ class faiVariableEntry extends plugin $tmp=array(); foreach($this->attributes as $attrs){ $attr = preg_replace("/^Object_/","",$attrs); - $tmp[$attr] = $this->$attrs; + $tmp[$attr] = stripslashes( $this->$attrs); } if(($this->orig_cn)&&($tmp['cn']!=$this->orig_cn)){