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:53 +0000 (00:23 -0400)
commit0ad1554bbe7883f39e4a764355ba32a180eb5aea
treee8fea5a7e728e3bf24611303195b07e4330bfbcd
parentce1f440f8c4f444e6984ddd2a3bdbb21b8ea802a
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