Révision cee0424c
Ajouté par Assos Assos il y a plus de 3 ans
drupal7/misc/autocomplete.js | ||
---|---|---|
297 | 297 |
// encodeURIComponent to allow autocomplete search terms to contain slashes. |
298 | 298 |
$.ajax({ |
299 | 299 |
type: 'GET', |
300 |
url: db.uri + '/' + Drupal.encodePath(searchString),
|
|
300 |
url: Drupal.sanitizeAjaxUrl(db.uri + '/' + Drupal.encodePath(searchString)),
|
|
301 | 301 |
dataType: 'json', |
302 |
jsonp: false, |
|
302 | 303 |
success: function (matches) { |
303 | 304 |
if (typeof matches.status == 'undefined' || matches.status != 0) { |
304 | 305 |
db.cache[searchString] = matches; |
Formats disponibles : Unified diff
-a