From 597bfd529759dcc1fdf9760c6917c867f09f60b5 Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 13 Mar 2012 09:46:37 -0700 Subject: 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. --- misc/autocomplete.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'misc') 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) { -- cgit v1.2.3