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

2020-08-24 Thread Pierre Ynard
vlc/vlc-3.0 | branch: master | Pierre Ynard  | 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 

> 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:\"...

___
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits


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

2020-08-24 Thread Pierre Ynard
vlc | branch: master | Pierre Ynard  | 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:\"...

___
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits