diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 87dc3d2128c..a621a195580 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -70,6 +70,7 @@ class Form $s =''; if ($conf->use_javascript && $htmltooltip) { + $htmltooltip=ereg_replace("'","\'",$htmltooltip); $s.=' onmouseover="showtip(\''.$htmltooltip.'\')"'; $s.=' onMouseout="hidetip()"'; }