From: lpsolit%gmail.com <> Date: Fri, 10 Oct 2008 22:44:46 +0000 (+0000) Subject: Bug 458189: Quicksearches starting with +DUP return no results - Patch by FrédÃ... X-Git-Tag: bugzilla-3.2rc2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c0c92d71841eb9d43d7d6e0b8cc4391f91691fb;p=thirdparty%2Fbugzilla.git Bug 458189: Quicksearches starting with +DUP return no results - Patch by Frédéric Buclin r=wurblzap r=wicked a=LpSolit --- diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm index df54952d55..a56ae1637c 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/(?