luci/modules/luci-mod-admin-full/luasrc/view/admin_system
Jo-Philipp Wich 94ab57f48c luci-mod-admin-full: restructure and fix backup, restore and sysuprade ()
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>
2015-10-22 08:48:06 +02:00
..
applyreboot.htm Globally convert headline anchors into name attributes. 2015-10-06 13:30:33 +02:00
backupfiles.htm Globally replace luci.dispatcher.build_url(...) with url(...) invocations 2015-10-07 19:07:36 +02:00
clock_status.htm luci-mod-admin-full: protect clock, flash and opkg ops with submit token 2015-10-20 21:04:46 +02:00
flashops.htm luci-mod-admin-full: restructure and fix backup, restore and sysuprade () 2015-10-22 08:48:06 +02:00
ipkg.htm Globally replace luci.dispatcher.build_url(...) with url(...) invocations 2015-10-07 19:07:36 +02:00
packages.htm luci-mod-admin-full: protect clock, flash and opkg ops with submit token 2015-10-20 21:04:46 +02:00
reboot.htm luci-mod-admin-full: switch to POST action for reboot 2015-10-07 01:54:56 +02:00
upgrade.htm luci-mod-admin-full: restructure and fix backup, restore and sysuprade () 2015-10-22 08:48:06 +02:00