Added uri encoding

This commit is contained in:
Jiiks 2016-08-11 17:30:27 +03:00
parent 42971a5714
commit 8625b1bdbf
1 changed files with 2 additions and 2 deletions

View File

@ -23,9 +23,9 @@ mediaSupport.prototype.convert = function () {
} }
if(video) { if(video) {
t.replaceWith('<video width="480" height="320" src="'+href+'" type="video/'+type+'" controls></video>'); t.replaceWith('<video width="480" height="320" src="'+encodeURI(href)+'" type="video/'+type+'" controls></video>');
} else { } else {
t.replaceWith('<audio src="'+href+'" type="audio/'+type+'" controls></audio>'); t.replaceWith('<audio src="'+encodeURI(href)+'" type="audio/'+type+'" controls></audio>');
} }
}); });
}; };