From: Dirk Brenken Date: Tue, 14 Apr 2020 17:44:58 +0000 (+0200) Subject: luci-app-adblock: accept capital letters in DNS filter X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e7cb6efb5a2c147fb00b5dd97651099a60da9bd3;p=oweals%2Fluci.git luci-app-adblock: accept capital letters in DNS filter Signed-off-by: Dirk Brenken --- 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 72823f028..a32510f95 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) {