diff options
Diffstat (limited to 'Bugzilla/Search')
-rw-r--r-- | Bugzilla/Search/Quicksearch.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm index 62b6e2fbd..b96dd3d4d 100644 --- a/Bugzilla/Search/Quicksearch.pm +++ b/Bugzilla/Search/Quicksearch.pm @@ -517,6 +517,9 @@ sub splitString { # as it has a special meaning. Strings which start with # "+" must be quoted. s/(?<!^)\+/%2B/g; + # Also protect the minus sign from being considered + # as negation, in quotes. + s/(?<!^)\-/%2D/g; # Remove quotes s/"//g; } |