fixed escaping of parameters for the wz_tooltips: single quotes in calendar titles caused all tooltips on that page not to appear

This commit is contained in:
Ralf Becker 2004-11-17 14:19:12 +00:00
parent be74b456aa
commit b7a8cf9b48

View File

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