Bugs item #3551992, was opened at 2012-07-30 04:58
Message generated for change (Comment added) made by ajlittoz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390117&aid=3551992&group_id=27350
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Browsing
Group: current cvs
>Status: Closed
>Resolution: Fixed
Priority: 3
Private: No
Submitted By: Andre-Littoz (ajlittoz)
Assigned to: Andre-Littoz (ajlittoz)
Summary: Incorrect search if string contains spaces
Initial Comment:
Free text search (script search)
If the submitted string contains spaces, HTML <FORM> submission algorithm transforms spaces into plus signs (+) gefore inserting it into the query part of the URL.
Presently, search uses this string (argument _string) "as is". If, unfortunately, the string contains spaces, it is passed to glimpse with the pluses. The search will frequently results in a failure or at best in incorrect hits.
Fix: add
$searchtext =~ s/\+/ /g;
before launching the searh in sub search.
----------------------------------------------------------------------
>Comment By: Andre-Littoz (ajlittoz)
Date: 2012-08-03 10:25
Message:
Fixed as suggested
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390117&aid=3551992&group_id=27350
|