summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb08934)
raw | patch | inline | side by side (parent: cb08934)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 8 Jul 2010 11:18:42 +0000 (11:18 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 8 Jul 2010 11:18:42 +0000 (11:18 +0000) |
-Made smarty assignments valid by replacing special chars like <>
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18964 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18964 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiScript.inc | patch | blob | history | |
gosa-plugins/fai/admin/fai/class_faiScriptEntry.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiScript.inc b/gosa-plugins/fai/admin/fai/class_faiScript.inc
index 7d47a226a36afd5692ef8a36341bd1812fc53af8..78b4385e8e633e01e1f0e7c10c1625fa2629b80b 100644 (file)
* If we post the escaped strings they will be escaped again
*/
foreach($this->attributes as $attrs){
- $smarty->assign($attrs,htmlentities($this->$attrs, ENT_QUOTES, 'utf-8'));
+ $smarty->assign($attrs,set_post($this->$attrs));
}
$dn = $this->acl_base_for_current_object($this->dn);
{
$vars = array("cn");
$smarty = get_smarty();
- $smarty->assign("cn", htmlentities($this->cn));
+ $smarty->assign("cn", set_post($this->cn));
$str = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE));
$ret = array();
$ret['string'] = $str;
diff --git a/gosa-plugins/fai/admin/fai/class_faiScriptEntry.inc b/gosa-plugins/fai/admin/fai/class_faiScriptEntry.inc
index 33c38f35d72fb598105c94eb6181951674b31c48..2371f6b30b58f7286a2d632ef36e47756842129d 100644 (file)
}
foreach($this->attributes as $attrs){
- $smarty->assign($attrs, htmlentities($this->$attrs, ENT_QUOTES, 'utf-8'));
+ $smarty->assign($attrs, set_post($this->$attrs));
}
- $smarty->assign('FAIscript', htmlentities($this->FAIscript, ENT_QUOTES, 'utf-8'));
/* File download requested */
if(isset($_POST['download'])){