Commit df2d2daa authored by Frédéric Buclin's avatar Frédéric Buclin

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

r/a=mkanat
parent bd41885b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment