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

This commit is contained in:
Ralf Becker
2010-06-10 14:31:30 +00:00
parent 22dcb1c5de
commit 5443acbb21
2 changed files with 2 additions and 2 deletions

View File

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