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