updated core to 7.80
This commit is contained in:
@@ -424,6 +424,23 @@ Drupal.urlIsLocal = function (url) {
|
||||
return absoluteUrl === baseUrl || absoluteUrl.indexOf(baseUrl + '/') === 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* Sanitizes a URL for use with jQuery.ajax().
|
||||
*
|
||||
* @param url
|
||||
* The URL string to be sanitized.
|
||||
*
|
||||
* @return
|
||||
* The sanitized URL.
|
||||
*/
|
||||
Drupal.sanitizeAjaxUrl = function (url) {
|
||||
var regex = /\=\?(&|$)/;
|
||||
while (url.match(regex)) {
|
||||
url = url.replace(regex, '');
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate the themed representation of a Drupal object.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user