From bfab7d5a462a974cf932bdf6562ca5da0eff62a8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 19 Jul 2004 15:19:02 +0000 Subject: [PATCH] changed quoting for wz_tooltips to allow linebreaks --- phpgwapi/inc/class.html.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index 31989eeb31..615a5a791e 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -93,7 +93,7 @@ class html } if ($text === False) return ' onmouseover="'.$opt_out.'return escape(this.innerHTML);"'; - return ' onmouseover="'.$opt_out.'return escape(\''.addslashes(@htmlentities(str_replace(array("\n","\r"),' ',$text),ENT_COMPAT,$this->charset)).'\')"'; + return ' onmouseover="'.$opt_out.'return escape(\''.str_replace(array("\n","\r","'",'"'),array('
','',"\\'",'"'),$text).'\')"'; } function activate_links($content)