Commit cffa99f0 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 458189: Quicksearches starting with +DUP return no results - Patch by…

Bug 458189: Quicksearches starting with +DUP return no results - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=wurblzap r=wicked a=LpSolit
parent d06524a0
...@@ -446,12 +446,14 @@ sub splitString { ...@@ -446,12 +446,14 @@ sub splitString {
# Now split on unescaped whitespace # Now split on unescaped whitespace
@parts = split(/\s+/, $string); @parts = split(/\s+/, $string);
foreach (@parts) { 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 # Remove quotes
s/"//g; s/"//g;
# Protect plus signs from becoming a blank
s/\+/%2B/g;
} }
return @parts; return @parts;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment