Commit 8cbc5cae authored by Pierre Ynard's avatar Pierre Ynard

lua/http: remove bad conversion from URL to file path of VLM input

The conversion is pointless, limiting, unsafe, error-prone and indeed
buggy as it's done in a naive way oblivious of Windows file URL schemes.

Should fix #14842
parent a00ca419
......@@ -168,7 +168,7 @@
modal: true,
buttons:{
"<?vlc gettext("Yes") ?>":function(){
var file = $('[current="current"]','#libraryTree').length>0 ? decodeURIComponent($('[current="current"]','#libraryTree').first().attr('uri').substr(7)) : ($('.jstree-clicked','#libraryTree').length>0 ? decodeURIComponent($('.jstree-clicked','#libraryTree').first().parents().first().attr('uri').substr(7)) : ($('#plid_'+current_id).attr('uri') ? decodeURIComponent($('#plid_'+current_id).attr('uri').substr(7)) : false));
var file = $('[current="current"]','#libraryTree').length>0 ? $('[current="current"]','#libraryTree').first().attr('uri') : ($('.jstree-clicked','#libraryTree').length>0 ? $('.jstree-clicked','#libraryTree').first().parents().first().attr('uri') : ($('#plid_'+current_id).attr('uri') ? $('#plid_'+current_id).attr('uri') : false));
if(file){
if($('#viewContainer').css('display')=='none'){
$('#buttonViewer').click();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment