forked from extern/egroupware
improved workaround-fix for bug 421645 quotes in email_sig prefs
This commit is contained in:
parent
5d8a9baa00
commit
44180f84a0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user