diff options
author | Manuel Munz <freifunk@somakoma.de> | 2013-09-01 16:39:55 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2013-09-01 16:39:55 +0000 |
commit | c16cbd527c393c33fef167ec0ddad63966db770d (patch) | |
tree | baf6795671cd4038ca8041da6407e7ebbe36e910 /modules/admin-full/luasrc | |
parent | c4be2b93c05aa7a63d7f998e19051857f7924d85 (diff) |
system/applyreboot: Use the correct protocol, #603
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r-- | modules/admin-full/luasrc/view/admin_system/applyreboot.htm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/view/admin_system/applyreboot.htm b/modules/admin-full/luasrc/view/admin_system/applyreboot.htm index 866d213f0..56721a610 100644 --- a/modules/admin-full/luasrc/view/admin_system/applyreboot.htm +++ b/modules/admin-full/luasrc/view/admin_system/applyreboot.htm @@ -24,10 +24,10 @@ $Id$ img.onload = function() { window.clearInterval(interval); - location.href = 'http://<%=addr or luci.http.getenv("SERVER_NAME")%>/'; + location.href = ('https:' == document.location.protocol ? 'https://' : 'http://') + '<%=addr or luci.http.getenv("SERVER_NAME")%>/'; }; - img.src = 'http://<%=addr or luci.http.getenv("SERVER_NAME")%><%=resource%>/icons/loading.gif?' + Math.random(); + img.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + '<%=addr or luci.http.getenv("SERVER_NAME")%><%=resource%>/icons/loading.gif?' + Math.random(); }, 5000); //]]></script> </head> |