From bce310bfcd41a20b85fbe85fdcdf47ab1d5032bf Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Sat, 16 Sep 2023 13:11:58 +0000 Subject: [PATCH] adblock-fast: bugfix: remove domains on allow * fix sed command to properly remove allowed domains from block-file Signed-off-by: Stan Grishin --- net/adblock-fast/Makefile | 2 +- net/adblock-fast/files/etc/init.d/adblock-fast | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/adblock-fast/Makefile b/net/adblock-fast/Makefile index 422b95c1ea..317a3d1aae 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 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 f7fb5b3d23..2a75e69383 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 -- 2.30.2