diff options
author | Stan Grishin <stangri@melmac.ca> | 2023-09-16 13:11:58 +0000 |
---|---|---|
committer | Stan Grishin <stangri@melmac.ca> | 2023-09-16 13:13:49 +0000 |
commit | bce310bfcd41a20b85fbe85fdcdf47ab1d5032bf (patch) | |
tree | 98f43fe94b6a75dfdc6f4a59925d9749f9f4da52 /net/adblock-fast/files/etc | |
parent | 6105cb27528d3927882d746a48026a25e2f35f5b (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/files/etc')
-rwxr-xr-x | net/adblock-fast/files/etc/init.d/adblock-fast | 2 |
1 files changed, 1 insertions, 1 deletions
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 |