]> git.evergreen-ils.org Git - working/Evergreen.git/commit
AutoSuggest: Escape ampersands properly
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 18 Apr 2012 14:41:27 +0000 (10:41 -0400)
committerDan Scott <dan@coffeecode.net>
Wed, 9 May 2012 04:23:07 +0000 (00:23 -0400)
commit9f628498dadb857afc79fad053d21dfe0bb1c746
tree6ee3d38bea2ab10ee3a09d5820a923b71a4c4003
parent1492479f314b3ff12539be54ef097a550c099746
AutoSuggest: Escape ampersands properly

This fixes an issue reported by Yamil Suarez.

If you had relatively technical users composing searches with
QueryParser syntax, or if they were just typing ampersands for any
other reason, AutoSuggest would behave as if the ampersand marked the end
of user input.

This is fixed by applying the correct URI-encoding function for the
situation.

To be clear, QueryParser syntax does not actually affect suggestions;
such syntax is ignored.  AutoSuggest is not search.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/web/js/dojo/openils/AutoSuggestStore.js