diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm index df54952d55e7df3e3d7c6e150c9faf0a19450f2a..a56ae1637c5674fef50f0bfa4f9a9f1d7dfdaed4 100644 --- a/Bugzilla/Search/Quicksearch.pm +++ b/Bugzilla/Search/Quicksearch.pm @@ -446,12 +446,14 @@ sub splitString { # Now split on unescaped whitespace @parts = split(/\s+/, $string); foreach (@parts) { + # Protect plus signs from becoming a blank. + # If "+" appears as the first character, leave it alone + # as it has a special meaning. Strings which start with + # "+" must be quoted. + s/(?<!^)\+/%2B/g; # Remove quotes s/"//g; - # Protect plus signs from becoming a blank - s/\+/%2B/g; } - return @parts; }