diff options
author | Hugo Seabrook <hugo.seabrook@gmail.com> | 2013-02-16 23:21:49 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2013-02-16 23:21:49 +0100 |
commit | 91a5a96b0b9890808fe888b60ba552cb49d874a8 (patch) | |
tree | bd33b67b550f6113920ad7a338bb00dd4cf9929d /Bugzilla/BugUrl/SourceForge.pm | |
parent | f45ef9337770947f5bb36829c0427e14775ffe54 (diff) | |
download | bugs-91a5a96b0b9890808fe888b60ba552cb49d874a8.tar bugs-91a5a96b0b9890808fe888b60ba552cb49d874a8.tar.gz bugs-91a5a96b0b9890808fe888b60ba552cb49d874a8.tar.bz2 bugs-91a5a96b0b9890808fe888b60ba552cb49d874a8.tar.xz bugs-91a5a96b0b9890808fe888b60ba552cb49d874a8.zip |
Bug 825758: Most Bugzilla::BugUrl::* modules incorrectly validate the domain name
r/a=LpSolit
Diffstat (limited to 'Bugzilla/BugUrl/SourceForge.pm')
-rw-r--r-- | Bugzilla/BugUrl/SourceForge.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/BugUrl/SourceForge.pm b/Bugzilla/BugUrl/SourceForge.pm index 90a7ca6a5..630b97d7a 100644 --- a/Bugzilla/BugUrl/SourceForge.pm +++ b/Bugzilla/BugUrl/SourceForge.pm @@ -21,7 +21,7 @@ sub should_handle { # SourceForge tracker URLs have only one form: # http://sourceforge.net/tracker/?func=detail&aid=111&group_id=111&atid=111 - return ($uri->authority =~ /^sourceforge.net$/i + return (lc($uri->authority) eq 'sourceforge.net' and $uri->path =~ m|/tracker/| and $uri->query_param('func') eq 'detail' and $uri->query_param('aid') |