diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-21 00:11:28 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-21 00:11:28 +0200 |
commit | f23f7b8751bb36829fd2136dffadcfe1e702149a (patch) | |
tree | 4a95693b1e9eccd4e6bce20f291201923b2ca735 /applications/luci-app-upnp/luasrc/view | |
parent | c1278f967e90352506900d243888cd3ac9caee9f (diff) |
luci-app-upnp: protect lease delete call with csrf token
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'applications/luci-app-upnp/luasrc/view')
-rw-r--r-- | applications/luci-app-upnp/luasrc/view/upnp_status.htm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-upnp/luasrc/view/upnp_status.htm b/applications/luci-app-upnp/luasrc/view/upnp_status.htm index ce735cf7b..e358dcded 100644 --- a/applications/luci-app-upnp/luasrc/view/upnp_status.htm +++ b/applications/luci-app-upnp/luasrc/view/upnp_status.htm @@ -1,6 +1,6 @@ <script type="text/javascript">//<![CDATA[ function upnp_delete_fwd(idx) { - XHR.get('<%=url('admin/services/upnp/delete')%>/' + idx, null, + (new XHR()).post('<%=url('admin/services/upnp/delete')%>/' + idx, { token: '<%=token%>' }, function(x) { var tb = document.getElementById('upnp_status_table'); |