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

Pierre Ynard git at videolan.org
Mon Aug 24 12:48:01 CEST 2020


vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Aug 24 12:41:07 2020 +0200| [5212f56ecd07aa51637c5a3704e7e4d7be5a3a49] | committer: Pierre Ynard

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

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

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=5212f56ecd07aa51637c5a3704e7e4d7be5a3a49
---

 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 77fde2d866..e5002251e7 100644
--- a/share/lua/intf/modules/httprequests.lua
+++ b/share/lua/intf/modules/httprequests.lua
@@ -383,7 +383,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