summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 24c6ac9)
raw | patch | inline | side by side (parent: 24c6ac9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 19 Jan 2006 12:01:58 +0000 (12:01 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 19 Jan 2006 12:01:58 +0000 (12:01 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2529 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiVariable.inc | patch | blob | history | |
plugins/admin/fai/class_faiVariableEntry.inc | patch | blob | history |
index 244c950393613b6e8b9852132e0891bf266ece14..2d2e581bf16e3d71a5d00ec568bf6dd4ac1b9798 100644 (file)
/* 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 62904273ca9ba47b6b77f9517b376a3da7d29b3e..f367315026db30f7af6f4bf136aacb228cd9a0ed 100644 (file)
*/
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)));
}
}