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:21:43 +00:00
parent 4ea51095d5
commit 54ed54807f

View File

@ -89,7 +89,7 @@
{
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);"';