From: hickert Date: Thu, 19 Jan 2006 12:01:58 +0000 (+0000) Subject: Fixed utf for vairiables X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d7770a6bc0b4961139935ffe41ac66e6208cdcf3;p=gosa.git Fixed utf for vairiables git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2529 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiVariable.inc b/plugins/admin/fai/class_faiVariable.inc index 244c95039..2d2e581bf 100644 --- a/plugins/admin/fai/class_faiVariable.inc +++ b/plugins/admin/fai/class_faiVariable.inc @@ -173,15 +173,15 @@ class faiVariable extends plugin /* Magic quotes GPC, escapes every ' " \, to solve some security risks * If we post the escaped strings they will be escaped again */ + foreach($this->attributes as $attrs){ if(get_magic_quotes_gpc()){ - $smarty->assign($attrs,stripslashes($this->$attrs)); + $smarty->assign($attrs,htmlentities (stripslashes(utf8_decode($this->$attrs)))); }else{ - $smarty->assign($attrs,($this->$attrs)); + $smarty->assign($attrs,htmlentities (utf8_decode($this->$attrs))); } } - $display.= $smarty->fetch(get_template_path('faiVariable.tpl', TRUE)); return($display); } diff --git a/plugins/admin/fai/class_faiVariableEntry.inc b/plugins/admin/fai/class_faiVariableEntry.inc index 62904273c..f36731502 100644 --- a/plugins/admin/fai/class_faiVariableEntry.inc +++ b/plugins/admin/fai/class_faiVariableEntry.inc @@ -49,9 +49,9 @@ class faiVariableEntry extends plugin */ foreach($this->attributes as $attrs){ if(get_magic_quotes_gpc()){ - $smarty->assign($attrs,htmlentities (stripslashes($this->$attrs))); + $smarty->assign($attrs,htmlentities (stripslashes(utf8_decode($this->$attrs)))); }else{ - $smarty->assign($attrs,htmlentities (($this->$attrs))); + $smarty->assign($attrs,htmlentities (utf8_decode($this->$attrs))); } }