diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-04-30 23:37:05 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-04-30 23:37:05 +0200 |
commit | 9d03ba42c45d0bff8ca490df80e431de23b2e308 (patch) | |
tree | f2fca0cd247c5bc90c8c529a9dc127198e2ccf68 | |
parent | aa9b4d74cfd8642908724488311f54fdbe9fc6b1 (diff) | |
download | bugzilla-9d03ba42c45d0bff8ca490df80e431de23b2e308.tar.gz bugzilla-9d03ba42c45d0bff8ca490df80e431de23b2e308.tar.xz |
Bug 867399 - [sentry] "use of uninitialized values" warnings in quicksearch
-rw-r--r-- | Bugzilla/Search/Quicksearch.pm | 2 |
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]+/ |