From 91a5a96b0b9890808fe888b60ba552cb49d874a8 Mon Sep 17 00:00:00 2001 From: Hugo Seabrook Date: Sat, 16 Feb 2013 23:21:49 +0100 Subject: Bug 825758: Most Bugzilla::BugUrl::* modules incorrectly validate the domain name r/a=LpSolit --- Bugzilla/BugUrl/Google.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/BugUrl/Google.pm') diff --git a/Bugzilla/BugUrl/Google.pm b/Bugzilla/BugUrl/Google.pm index eb9aa88f2..dd9ab7ff4 100644 --- a/Bugzilla/BugUrl/Google.pm +++ b/Bugzilla/BugUrl/Google.pm @@ -21,7 +21,7 @@ sub should_handle { # Google Code URLs only have one form: # http(s)://code.google.com/p/PROJECT_NAME/issues/detail?id=1234 - return ($uri->authority =~ /^code.google.com$/i + return (lc($uri->authority) eq 'code.google.com' and $uri->path =~ m|^/p/[^/]+/issues/detail$| and $uri->query_param('id') =~ /^\d+$/) ? 1 : 0; } -- cgit v1.2.3-24-g4f1b