]> git.sesse.net Git - vlc/commitdiff
http intf: ensure the password is set
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 22 Apr 2013 16:35:01 +0000 (19:35 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 22 Apr 2013 16:35:01 +0000 (19:35 +0300)
share/lua/intf/http.lua

index ea6ce87e2263a0f370148b7f9cfffb51a8b21477..f428a7f0c31545cee4d3d0d2b242cb6302d2e5c5 100644 (file)
@@ -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)