summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-08-02 04:03:13 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-08-02 04:03:13 +0200
commit5b0be2596d828e3766e320d0e410613faaa33e8f (patch)
treef5d24971c4b2cfb64683a938926eb482478967f9
parent984348dbea43263372f84fd4d9cf2a56f6a6112f (diff)
downloadbugzilla-5b0be2596d828e3766e320d0e410613faaa33e8f.tar.gz
bugzilla-5b0be2596d828e3766e320d0e410613faaa33e8f.tar.xz
Bug 553884: Quicksearch incorrectly treats "-" in quotes as negation
r/a=mkanat
-rw-r--r--Bugzilla/Search/Quicksearch.pm3
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;
}