summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-03-11 01:52:37 +0100
committerterry%mozilla.org <>2000-03-11 01:52:37 +0100
commit77c9d7e800351211f79b0f439b21862de7e05294 (patch)
tree937678f0d7b4240bc6618946849c7a9b46f0f8b0
parent983b3de9fa733c65784dbdac78663312616e368c (diff)
downloadbugzilla-77c9d7e800351211f79b0f439b21862de7e05294.tar.gz
bugzilla-77c9d7e800351211f79b0f439b21862de7e05294.tar.xz
Never let ", <, or > be matched as part of a URL.
-rw-r--r--bug_form.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/bug_form.pl b/bug_form.pl
index 4ca7f43c5..bac65d14c 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);