summaryrefslogtreecommitdiffstats
path: root/Bugzilla/BugUrl/Debian.pm
diff options
context:
space:
mode:
authorHugo Seabrook <hugo.seabrook@gmail.com>2013-02-16 23:21:49 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2013-02-16 23:21:49 +0100
commit91a5a96b0b9890808fe888b60ba552cb49d874a8 (patch)
treebd33b67b550f6113920ad7a338bb00dd4cf9929d /Bugzilla/BugUrl/Debian.pm
parentf45ef9337770947f5bb36829c0427e14775ffe54 (diff)
downloadbugzilla-91a5a96b0b9890808fe888b60ba552cb49d874a8.tar.gz
bugzilla-91a5a96b0b9890808fe888b60ba552cb49d874a8.tar.xz
Bug 825758: Most Bugzilla::BugUrl::* modules incorrectly validate the domain name
r/a=LpSolit
Diffstat (limited to 'Bugzilla/BugUrl/Debian.pm')
-rw-r--r--Bugzilla/BugUrl/Debian.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/BugUrl/Debian.pm b/Bugzilla/BugUrl/Debian.pm
index 7ab8bf173..97ad4b545 100644
--- a/Bugzilla/BugUrl/Debian.pm
+++ b/Bugzilla/BugUrl/Debian.pm
@@ -22,7 +22,7 @@ sub should_handle {
# Debian BTS URLs can look like various things:
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1234
# http://bugs.debian.org/1234
- return ($uri->authority =~ /^bugs.debian.org$/i
+ return (lc($uri->authority) eq 'bugs.debian.org'
and (($uri->path =~ /bugreport\.cgi$/
and $uri->query_param('bug') =~ m|^\d+$|)
or $uri->path =~ m|^/\d+$|)) ? 1 : 0;