AutoSuggest: Escape ampersands properly user/senator/autosuggest-ampersands
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 18 Apr 2012 14:41:27 +0000 (10:41 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 18 Apr 2012 14:41:27 +0000 (10:41 -0400)
commit1d45b554445781d4385c37edd42477222c34db68
tree2056d63a5ee2f102778cb44d530a50ba61ab192b
parent3ca291c2c43d3237c5b591fe302e62c22449e97c
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>
Open-ILS/web/js/dojo/openils/AutoSuggestStore.js