diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2010-08-02 04:03:13 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-08-02 04:03:13 +0200 |
commit | 5b0be2596d828e3766e320d0e410613faaa33e8f (patch) | |
tree | f5d24971c4b2cfb64683a938926eb482478967f9 /Bugzilla/Search/Quicksearch.pm | |
parent | 984348dbea43263372f84fd4d9cf2a56f6a6112f (diff) | |
download | bugzilla-5b0be2596d828e3766e320d0e410613faaa33e8f.tar.gz bugzilla-5b0be2596d828e3766e320d0e410613faaa33e8f.tar.xz |
Bug 553884: Quicksearch incorrectly treats "-" in quotes as negation
r/a=mkanat
Diffstat (limited to 'Bugzilla/Search/Quicksearch.pm')
-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; } |