From e7cb6efb5a2c147fb00b5dd97651099a60da9bd3 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Tue, 14 Apr 2020 19:44:58 +0200 Subject: luci-app-adblock: accept capital letters in DNS filter Signed-off-by: Dirk Brenken --- .../htdocs/luci-static/resources/view/adblock/dnsreport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-adblock/htdocs/luci-static/resources/view') diff --git a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/dnsreport.js b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/dnsreport.js index 72823f0287..a32510f95b 100644 --- a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/dnsreport.js +++ b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/dnsreport.js @@ -165,7 +165,7 @@ function handleAction(ev) { 'id': 'refresh', 'click': ui.createHandlerFn(this, async function(ev) { var count = document.getElementById('count').value; - var search = document.getElementById('search').value.trim().replace(/[^a-z0-9\.\-\:]/g,'') || '+'; + var search = document.getElementById('search').value.trim().replace(/[^\w\.\-\:]/g,'') || '+'; L.resolveDefault(fs.exec_direct('/etc/init.d/adblock', ['report', search, count, 'true', 'json']),''); var running = 1; while (running === 1) { -- cgit v1.2.3