[vlc-commits] lua/http: remove bad conversion from URL to file path of VLM input

Pierre Ynard git at videolan.org
Wed Nov 9 01:30:35 CET 2016


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Nov  9 01:29:40 2016 +0100| [8cbc5caea9fa95411fb416ee53dee629c262c77c] | committer: 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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8cbc5caea9fa95411fb416ee53dee629c262c77c
---

 share/lua/http/index.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/lua/http/index.html b/share/lua/http/index.html
index bf831c9..211fa08 100644
--- a/share/lua/http/index.html
+++ b/share/lua/http/index.html
@@ -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();



More information about the vlc-commits mailing list