mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
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:
parent
be74b456aa
commit
b7a8cf9b48
@ -89,7 +89,7 @@ class html
|
|||||||
{
|
{
|
||||||
foreach($options as $option => $value)
|
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);"';
|
if ($text === False) return ' onmouseover="'.$opt_out.'return escape(this.innerHTML);"';
|
||||||
|
Loading…
Reference in New Issue
Block a user