Unify character encoding header code

This commit is contained in:
emanuele-f 2017-05-04 17:12:06 +02:00
parent 10be6c2190
commit 1c38df48c9
114 changed files with 127 additions and 119 deletions

View file

@ -6,7 +6,7 @@ dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
sendHTTPContentTypeHeader('text/html')
if(haveAdminPrivileges()) then
username = _POST["username"]