mirror of
https://github.com/openwrt/luci.git
synced 2026-08-28 05:46:45 +04:00
Merge pull request #535 from saik0/redirect-root-if-empty-signed
Redirect to root on empty path (signed off)
This commit is contained in:
@@ -208,6 +208,7 @@ function splice(fd, size)
|
||||
end
|
||||
|
||||
function redirect(url)
|
||||
if url == "" then url = "/" end
|
||||
status(302, "Found")
|
||||
header("Location", url)
|
||||
close()
|
||||
|
||||
Reference in New Issue
Block a user