Fixed possible undefined interface name

If CSRF has been validated, valid_csrf is now put on _GET
This commit is contained in:
Luca 2017-01-12 06:55:22 -08:00
parent f91fbe3d94
commit ada218c00e
2 changed files with 2 additions and 5 deletions

View file

@ -1622,6 +1622,7 @@ end
function getInterfaceNameAlias(interface_name)
if(interface_name == nil) then return("") end
-- io.write(debug.traceback().."\n")
label = ntop.getCache('ntopng.prefs.'..interface_name..'.name')
if((label == nil) or (label == "")) then