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

Pierre Ynard git at videolan.org
Mon Dec 5 07:23:30 CET 2016


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

(cherry picked from commit 8cbc5caea9fa95411fb416ee53dee629c262c77c)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>

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

 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