Commit 77c9d7e8 authored by terry%mozilla.org's avatar terry%mozilla.org

Never let ", <, or > be matched as part of a URL.

parent 983b3de9
......@@ -71,7 +71,7 @@ sub quoteUrls {
my @things;
while ($text =~ s%((mailto:)?([\w\.\-\+\=]+\@[\w\-]+(?:\.[\w\-]+)+)\b|
(\b((?:$protocol):\S+[\w/])))%"##$count##"%exo) {
(\b((?:$protocol):[^ \t\n<>"]+[\w/])))%"##$count##"%exo) {
my $item = $&;
$item = value_quote($item);
......
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