diff --git a/phpgwapi/inc/class.send.inc.php b/phpgwapi/inc/class.send.inc.php index 094fde37ff..9a0d2133b0 100644 --- a/phpgwapi/inc/class.send.inc.php +++ b/phpgwapi/inc/class.send.inc.php @@ -254,16 +254,10 @@ function sig_html_to_text($sig) { - // convert HTML chars in the email sig to normal text - // note: initially include a "magic_quote" like escape slash with the single and double quotes + // convert HTML chars for ' and " in the email sig to normal text $sig_clean = $sig; - $sig_clean = ereg_replace('>', '>', $sig_clean); - $sig_clean = ereg_replace('<', '<', $sig_clean); - $sig_clean = ereg_replace('"', '\"', $sig_clean); + $sig_clean = ereg_replace('"', '"', $sig_clean); $sig_clean = ereg_replace(''', '\'', $sig_clean); - $sig_clean = ereg_replace('&', '&', $sig_clean); - // now strip the "magic_quote" like escape slashs - $sig_clean = stripslashes($sig_clean); return $sig_clean; }