luci-app-adblock: accept capital letters in DNS filter
authorDirk Brenken <dev@brenken.org>
Tue, 14 Apr 2020 17:44:58 +0000 (19:44 +0200)
committerDirk Brenken <dev@brenken.org>
Tue, 14 Apr 2020 17:44:58 +0000 (19:44 +0200)
Signed-off-by: Dirk Brenken <dev@brenken.org>
applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/dnsreport.js

index 72823f02879bed7e58f8397b8fe20f3a5f24c583..a32510f95b3df355f4bd4a9aeab9c1e34b9b21aa 100644 (file)
@@ -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) {