[vlc-commits] httprequests.lua: fix getbrowsetable() when no parameter is passed

Pierre Ynard git at videolan.org
Mon Aug 24 12:43:22 CEST 2020


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Aug 24 12:41:07 2020 +0200| [5a4a4c7feba6924db2bed766f8dc18d50a4752a3] | committer: Pierre Ynard

httprequests.lua: fix getbrowsetable() when no parameter is passed

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

 share/lua/intf/modules/httprequests.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/lua/intf/modules/httprequests.lua b/share/lua/intf/modules/httprequests.lua
index cdbc5a94b1..bff81f3464 100644
--- a/share/lua/intf/modules/httprequests.lua
+++ b/share/lua/intf/modules/httprequests.lua
@@ -362,7 +362,7 @@ getbrowsetable = function ()
             end
             dir = vlc.strings.make_path(common.realpath(uri))
         end
-    else
+    elseif _GET["dir"] then
         dir = _GET["dir"]
 
         -- "" dir means listing all drive letters e.g. "A:\", "C:\"...



More information about the vlc-commits mailing list