Bug 659185: html_quote() escapes @ causing mailto links to not be processed

r/a=mkanat


git-svn-id: svn://10.0.0.236/trunk@262340 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org
2011-05-24 07:05:38 +00:00
parent fdd7832368
commit ea9684e90d
2 changed files with 3 additions and 2 deletions

View File

@@ -229,7 +229,8 @@ sub quoteUrls {
# mailto:
# Use |<nothing> so that $1 is defined regardless
$text =~ s~\b(mailto:|)?([\w\.\-\+\=]+\@[\w\-]+(?:\.[\w\-]+)+)\b
# &#64; is the encoded '@' character.
$text =~ s~\b(mailto:|)?([\w\.\-\+\=]+&\#64;[\w\-]+(?:\.[\w\-]+)+)\b
~<a href=\"mailto:$2\">$1$2</a>~igx;
# attachment links