]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 553884: Quicksearch incorrectly treats "-" in quotes as negation
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 2 Aug 2010 02:04:33 +0000 (04:04 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 2 Aug 2010 02:04:33 +0000 (04:04 +0200)
r/a=mkanat

Bugzilla/Search/Quicksearch.pm

index 62b6e2fbd1b1393277c06e7488894ef2ccf3af4a..b96dd3d4d54b3d45a614fef2f09f09d75fc96951 100644 (file)
@@ -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;
     }