adblock-fast: bugfix: remove domains on allow
authorStan Grishin <redacted>
Sat, 16 Sep 2023 13:11:58 +0000 (13:11 +0000)
committerStan Grishin <redacted>
Sat, 16 Sep 2023 13:13:49 +0000 (13:13 +0000)
* fix sed command to properly remove allowed domains from block-file

Signed-off-by: Stan Grishin <redacted>
net/adblock-fast/Makefile
net/adblock-fast/files/etc/init.d/adblock-fast

index 422b95c1ea85135bff4dbba78a1a7a86c4fc86f6..317a3d1aae07b26c6dc3b83c42eec1f7a5d005e7 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock-fast
 PKG_VERSION:=1.0.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
 PKG_LICENSE:=GPL-3.0-or-later
 
index f7fb5b3d23e93dc3e9938e76afd26debc10af882..2a75e69383690daa5d405ec7c0efd9b11eecbddb 100755 (executable)
@@ -1124,7 +1124,7 @@ adb_allow() {
                        for c in $string; do
                                output 2 "  $c "
                                hf="$(echo "$c" | sed 's/\./\\./g')"
-                               if sed -i "/(^|\.)${hf}$/d;" "$outputFile" && \
+                               if sed -i "/\(^\|\.\)${hf}$/d;" "$outputFile" && \
                                        uci_add_list_if_new "${packageName}" 'config' 'allowed_domain' "$c"; then
                                                output_ok
                                else
git clone https://git.99rst.org/PROJECT