From: terry%mozilla.org <> Date: Sat, 11 Mar 2000 00:52:37 +0000 (+0000) Subject: Never let ", <, or > be matched as part of a URL. X-Git-Tag: bugzilla-2.12~349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77c9d7e800351211f79b0f439b21862de7e05294;p=thirdparty%2Fbugzilla.git Never let ", <, or > be matched as part of a URL. --- diff --git a/bug_form.pl b/bug_form.pl index 4ca7f43c5f..bac65d14c2 100644 --- a/bug_form.pl +++ b/bug_form.pl @@ -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);