summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-03-13 09:46:37 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2012-03-13 09:46:37 -0700
commit597bfd529759dcc1fdf9760c6917c867f09f60b5 (patch)
treea26eb653287172b4218ac8c379d18ca162e31e03 /misc
parent1569c4bde2de6097de2abd6f5f66d62f0cede3c5 (diff)
downloadbrdo-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.js5
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) {