summaryrefslogtreecommitdiffstats
path: root/Bugzilla/BugUrl/Launchpad.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/Launchpad.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/Launchpad.pm')
-rw-r--r--Bugzilla/BugUrl/Launchpad.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/BugUrl/Launchpad.pm b/Bugzilla/BugUrl/Launchpad.pm
index 43c5c57d9..3409cbe19 100644
--- a/Bugzilla/BugUrl/Launchpad.pm
+++ b/Bugzilla/BugUrl/Launchpad.pm
@@ -23,7 +23,7 @@ sub should_handle {
# https://bugs.launchpad.net/ubuntu/+bug/1234
# https://launchpad.net/bugs/1234
# All variations end with either "/bugs/1234" or "/+bug/1234"
- return ($uri->authority =~ /launchpad.net$/
+ return ($uri->authority =~ /launchpad\.net$/
and $uri->path =~ m|bugs?/\d+$|) ? 1 : 0;
}