aboutsummaryrefslogtreecommitdiffstats
path: root/extensions/MoreBugUrl/lib/PHP.pm
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/MoreBugUrl/lib/PHP.pm')
-rw-r--r--extensions/MoreBugUrl/lib/PHP.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/MoreBugUrl/lib/PHP.pm b/extensions/MoreBugUrl/lib/PHP.pm
index 1521cae1a..ea090e865 100644
--- a/extensions/MoreBugUrl/lib/PHP.pm
+++ b/extensions/MoreBugUrl/lib/PHP.pm
@@ -20,8 +20,8 @@ sub should_handle {
# PHP Bug URLs have only one form:
# https://bugs.php.net/bug.php?id=1234
- return ($uri->authority =~ /^bugs.php.net$/i
- and $uri->path =~ m|/bug.php$|
+ return (lc($uri->authority) eq 'bugs.php.net'
+ and $uri->path =~ m|/bug\.php$|
and $uri->query_param('id') =~ /^\d+$/) ? 1 : 0;
}