[vlc-commits] http intf: ensure the password is set
Rémi Denis-Courmont
git at videolan.org
Mon Apr 22 18:35:26 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 22 19:35:01 2013 +0300| [51719d5a03afd84eb0ddc76eed393b196d15b0d0] | committer: Rémi Denis-Courmont
http intf: ensure the password is set
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=51719d5a03afd84eb0ddc76eed393b196d15b0d0
---
share/lua/intf/http.lua | 2 ++
1 file changed, 2 insertions(+)
diff --git a/share/lua/intf/http.lua b/share/lua/intf/http.lua
index ea6ce87..f428a7f 100644
--- a/share/lua/intf/http.lua
+++ b/share/lua/intf/http.lua
@@ -320,6 +320,8 @@ if config.host then
end
password = vlc.var.inherit(nil,"http-password")
+assert(password ~= "", "password not defined")
+
h = vlc.httpd()
load_dir( http_dir )
a = h:handler("/art",nil,password,callback_art,nil)
More information about the vlc-commits
mailing list