summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-10-11 00:42:45 +0200
committerlpsolit%gmail.com <>2008-10-11 00:42:45 +0200
commitcffa99f0196539a041b36218662f414661c2759f (patch)
treee0e407bc3c41539d2055e127d9ef5ae7c6645459 /Bugzilla
parentd06524a0338c32aafd281cc8c283d01712b13313 (diff)
downloadbugzilla-cffa99f0196539a041b36218662f414661c2759f.tar.gz
bugzilla-cffa99f0196539a041b36218662f414661c2759f.tar.xz
Bug 458189: Quicksearches starting with +DUP return no results - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap r=wicked a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search/Quicksearch.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm
index df54952d5..a56ae1637 100644
--- a/Bugzilla/Search/Quicksearch.pm
+++ b/Bugzilla/Search/Quicksearch.pm
@@ -446,12 +446,14 @@ sub splitString {
# Now split on unescaped whitespace
@parts = split(/\s+/, $string);
foreach (@parts) {
+ # Protect plus signs from becoming a blank.
+ # If "+" appears as the first character, leave it alone
+ # as it has a special meaning. Strings which start with
+ # "+" must be quoted.
+ s/(?<!^)\+/%2B/g;
# Remove quotes
s/"//g;
- # Protect plus signs from becoming a blank
- s/\+/%2B/g;
}
-
return @parts;
}