fixed missing escaping of double quotes in the title of wz_tooltips

This commit is contained in:
Ralf Becker 2005-07-28 09:45:58 +00:00
parent b8bf4655fb
commit 8d4c01bf4b

View File

@ -128,7 +128,8 @@ class html
{
foreach($options as $option => $value)
{
$opt_out .= 'this.T_'.strtoupper($option).'='.(is_numeric($value)?$value:"'".str_replace("'","\\'",$value)."'").'; ';
$opt_out .= 'this.T_'.strtoupper($option).'='.(is_numeric($value)?$value:"'".str_replace(array("'",'"'),array("\\'",'"'),$value)."'").'; ';
}
}
if ($text === False) return ' onmouseover="'.$opt_out.'return escape(this.innerHTML);"';