From a392dbf888f0cdaee211eca9b58becc804ee3458 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Fri, 30 Oct 2020 20:30:37 +0100 Subject: [PATCH] luci-app-adblock: change "refresh" action * change "refresh" action to fix potential white-/blacklist issues Signed-off-by: Dirk Brenken --- .../htdocs/luci-static/resources/view/adblock/overview.js | 2 +- .../root/usr/share/rpcd/acl.d/luci-app-adblock.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js index 9610735d97..e95702a75e 100644 --- a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js +++ b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js @@ -252,7 +252,7 @@ return view.extend({ E('button', { 'class': 'cbi-button cbi-button-apply', 'click': ui.createHandlerFn(this, function() { - return handleAction('start'); + return handleAction('reload'); }) }, [ _('Refresh') ]) ]) diff --git a/applications/luci-app-adblock/root/usr/share/rpcd/acl.d/luci-app-adblock.json b/applications/luci-app-adblock/root/usr/share/rpcd/acl.d/luci-app-adblock.json index 3f52b7eea2..58140badac 100644 --- a/applications/luci-app-adblock/root/usr/share/rpcd/acl.d/luci-app-adblock.json +++ b/applications/luci-app-adblock/root/usr/share/rpcd/acl.d/luci-app-adblock.json @@ -18,7 +18,7 @@ "/sbin/logread -e adblock-": [ "exec" ], "/usr/sbin/logread -e adblock-": [ "exec" ], "/etc/init.d/adblock list" : [ "exec" ], - "/etc/init.d/adblock start" : [ "exec" ], + "/etc/init.d/adblock reload" : [ "exec" ], "/etc/init.d/adblock suspend" : [ "exec" ], "/etc/init.d/adblock resume" : [ "exec" ], "/etc/init.d/adblock report * [0-9]* [a-z]* json" : [ "exec" ], -- 2.30.2