mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-13 20:02:27 +00:00
Encode URI passed as parameter in MB ws request url
This commit is contained in:
parent
b306925b98
commit
41c5f675cf
1 changed files with 2 additions and 2 deletions
|
@ -84,8 +84,8 @@ var MBLinks = function (cachekey, expiration) {
|
|||
} else {
|
||||
mblinks.ajax_requests.push($.proxy(function () {
|
||||
var context = this;
|
||||
$.getJSON('//musicbrainz.org/ws/2/url?resource=' + context.url + '&inc=' + context.mb_type +
|
||||
'-rels',
|
||||
$.getJSON('//musicbrainz.org/ws/2/url?resource=' + encodeURIComponent(context.url)
|
||||
+ '&inc=' + context.mb_type + '-rels',
|
||||
function (data) {
|
||||
if ('relations' in data) {
|
||||
var expires = new Date().getTime() + (mblinks.expirationMinutes * 60 * 1000);
|
||||
|
|
Loading…
Reference in a new issue