]> 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:05:34 +0000 (04:05 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 2 Aug 2010 02:05:34 +0000 (04:05 +0200)
r/a=mkanat

Bugzilla/Search/Quicksearch.pm

index c8643ea286902d5900e9c6e4ebb2797502ecf71b..929ad395de89fc3d4f3ce7a658f23a5b36bcb61d 100644 (file)
@@ -535,6 +535,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;
     }