summaryrefslogtreecommitdiff
path: root/net/adblock-fast
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2023-09-16 13:11:58 +0000
committerStan Grishin <stangri@melmac.ca>2023-09-16 13:13:49 +0000
commitbce310bfcd41a20b85fbe85fdcdf47ab1d5032bf (patch)
tree98f43fe94b6a75dfdc6f4a59925d9749f9f4da52 /net/adblock-fast
parent6105cb27528d3927882d746a48026a25e2f35f5b (diff)
adblock-fast: bugfix: remove domains on allow
* fix sed command to properly remove allowed domains from block-file Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'net/adblock-fast')
-rw-r--r--net/adblock-fast/Makefile2
-rwxr-xr-xnet/adblock-fast/files/etc/init.d/adblock-fast2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/adblock-fast/Makefile b/net/adblock-fast/Makefile
index 422b95c1e..317a3d1aa 100644
--- a/net/adblock-fast/Makefile
+++ b/net/adblock-fast/Makefile
@@ -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
diff --git a/net/adblock-fast/files/etc/init.d/adblock-fast b/net/adblock-fast/files/etc/init.d/adblock-fast
index f7fb5b3d2..2a75e6938 100755
--- a/net/adblock-fast/files/etc/init.d/adblock-fast
+++ b/net/adblock-fast/files/etc/init.d/adblock-fast
@@ -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