diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-22 08:35:34 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-22 08:48:06 +0200 |
commit | 94ab57f48c9a8704a0a7da87bfa6ced9e73ca9be (patch) | |
tree | a4e362c10f884766fe0ba3b0aa3399d2ad191921 /themes/luci-theme-material/htdocs/luci-static/material/js | |
parent | d32c68503994d46aa71473a647118b431119ae2a (diff) |
luci-mod-admin-full: restructure and fix backup, restore and sysuprade (#517)
Do not use standard post security checking for actions that require file upload
since reading the token value will trigger parsing of the http message body
before the file upload handler has been set, which causes LuCI to buffer the
entire request body in memory.
In order to simplify the code and logic flow, split action_flashops() into
separate handlers for reset, backup, restore and sysupgrade.
Let the backup restore and sysupgrade handlers use the new test_post_security()
method in luci.dispatcher to perform token checking *after* setting the upload
handler.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'themes/luci-theme-material/htdocs/luci-static/material/js')
0 files changed, 0 insertions, 0 deletions