diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-03-13 09:46:37 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-03-13 09:46:37 -0700 |
commit | 597bfd529759dcc1fdf9760c6917c867f09f60b5 (patch) | |
tree | a26eb653287172b4218ac8c379d18ca162e31e03 /misc | |
parent | 1569c4bde2de6097de2abd6f5f66d62f0cede3c5 (diff) | |
download | brdo-597bfd529759dcc1fdf9760c6917c867f09f60b5.tar.gz brdo-597bfd529759dcc1fdf9760c6917c867f09f60b5.tar.bz2 |
Issue #93854 by pillarsdotnet, Steven Jones, Dave Reid, ericduran, xjm, das-peter, e2thex, axel.rutz, mstrelan, mikestefff | moonray: Fixed Allow autocompletion requests to include slashes.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/autocomplete.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/misc/autocomplete.js b/misc/autocomplete.js index e5a089259..267d4b79b 100644 --- a/misc/autocomplete.js +++ b/misc/autocomplete.js @@ -287,10 +287,11 @@ Drupal.ACDB.prototype.search = function (searchString) { this.timer = setTimeout(function () { db.owner.setStatus('begin'); - // Ajax GET request for autocompletion. + // Ajax GET request for autocompletion. We use Drupal.encodePath instead of + // encodeURIComponent to allow autocomplete search terms to contain slashes. $.ajax({ type: 'GET', - url: db.uri + '/' + encodeURIComponent(searchString), + url: db.uri + '/' + Drupal.encodePath(searchString), dataType: 'json', success: function (matches) { if (typeof matches.status == 'undefined' || matches.status != 0) { |