From ea9684e90d9821be9cdeb0631ddcf386c3de223e Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Tue, 24 May 2011 07:05:38 +0000 Subject: [PATCH] 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 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/Template.pm | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 9268ee3b067..450b85db5f4 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -7823 \ No newline at end of file +7824 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/Template.pm b/mozilla/webtools/bugzilla/Bugzilla/Template.pm index 612291cebb8..8a7f538bd04 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Template.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Template.pm @@ -229,7 +229,8 @@ sub quoteUrls { # mailto: # Use | 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 ~$1$2~igx; # attachment links