summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Search/Quicksearch.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm
index df54952d5..a56ae1637 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;
}