summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-04-30 23:37:05 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-04-30 23:37:05 +0200
commit9d03ba42c45d0bff8ca490df80e431de23b2e308 (patch)
treef2fca0cd247c5bc90c8c529a9dc127198e2ccf68 /Bugzilla/Search
parentaa9b4d74cfd8642908724488311f54fdbe9fc6b1 (diff)
downloadbugzilla-9d03ba42c45d0bff8ca490df80e431de23b2e308.tar.gz
bugzilla-9d03ba42c45d0bff8ca490df80e431de23b2e308.tar.xz
Bug 867399 - [sentry] "use of uninitialized values" warnings in quicksearch
Diffstat (limited to 'Bugzilla/Search')
-rw-r--r--Bugzilla/Search/Quicksearch.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm
index d45e1b739..1fca2e322 100644
--- a/Bugzilla/Search/Quicksearch.pm
+++ b/Bugzilla/Search/Quicksearch.pm
@@ -544,6 +544,8 @@ sub _default_quicksearch_word {
sub _handle_urls {
my ($word, $negate) = @_;
+ return unless defined($word);
+
# URL field (for IP addrs, host.names,
# scheme://urls)
if ($word =~ m/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/