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 --- extensions/MoreBugUrl/lib/RT.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/MoreBugUrl/lib/RT.pm') diff --git a/extensions/MoreBugUrl/lib/RT.pm b/extensions/MoreBugUrl/lib/RT.pm index 724456828..a1ca6fd88 100644 --- a/extensions/MoreBugUrl/lib/RT.pm +++ b/extensions/MoreBugUrl/lib/RT.pm @@ -21,7 +21,7 @@ sub should_handle { # RT URLs can look like various things: # http://example.com/rt/Ticket/Display.html?id=1234 # https://example.com/Public/Bug/Display.html?id=1234 - return ($uri->path =~ m|/Display.html$| + return ($uri->path =~ m|/Display\.html$| and $uri->query_param('id') =~ /^\d+$/) ? 1 : 0; } -- cgit v1.2.3-24-g4f1b