allow json in body on(Load|Unload|Resize) tags

This commit is contained in:
Ralf Becker 2010-06-10 14:31:59 +00:00
parent 1b641c54b3
commit fd4cc1f953
2 changed files with 2 additions and 2 deletions

View File

@ -979,7 +979,7 @@ abstract class egw_framework
{ {
if (!empty($data)) if (!empty($data))
{ {
$js .= ' '.$what.'="' . str_replace(array('\\\'','"','\\','''),array(''','\\"','\\\\','\\\''),$data) . '"'; $js .= ' '.$what.'="' . htmlspecialchars($data) . '"';
} }
} }
return $js; return $js;

View File

@ -97,7 +97,7 @@ class idots_framework extends egw_framework
// the instanciation of the template has to be here and not in the constructor, // the instanciation of the template has to be here and not in the constructor,
// as the old Template class has problems if restored from the session (php-restore) // as the old Template class has problems if restored from the session (php-restore)
$this->tpl = new Template(EGW_TEMPLATE_DIR); $this->tpl = new Template(EGW_TEMPLATE_DIR,'keep');
$this->tpl->set_file(array('_head' => 'head.tpl')); $this->tpl->set_file(array('_head' => 'head.tpl'));
$this->tpl->set_block('_head','head'); $this->tpl->set_block('_head','head');