Fix database migration page redirection

Fix #2285
This commit is contained in:
emanuele-f 2019-01-03 11:18:42 +01:00
parent 4198318c9b
commit 25ed8843e6
3 changed files with 19 additions and 4 deletions

View file

@ -3432,6 +3432,16 @@ end
-- ###########################################
function getHttpUrlPrefix()
if starts(_SERVER["HTTP_HOST"], 'https://') then
return "https://"
else
return "http://"
end
end
-- ###########################################
-- Compares IPv4 / IPv6 addresses
function ip_address_asc(a, b)
return(ntop.ipCmp(a, b) < 0)