Merge pull request #22118 from stangri/master-adblock-fast
adblock-fast: bugfix: remove domains on allow
This commit is contained in:
commit
3653eb3d4a
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=adblock-fast
|
PKG_NAME:=adblock-fast
|
||||||
PKG_VERSION:=1.0.0
|
PKG_VERSION:=1.0.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
|
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
|
||||||
PKG_LICENSE:=GPL-3.0-or-later
|
PKG_LICENSE:=GPL-3.0-or-later
|
||||||
|
|
||||||
|
|
|
@ -1124,7 +1124,7 @@ adb_allow() {
|
||||||
for c in $string; do
|
for c in $string; do
|
||||||
output 2 " $c "
|
output 2 " $c "
|
||||||
hf="$(echo "$c" | sed 's/\./\\./g')"
|
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
|
uci_add_list_if_new "${packageName}" 'config' 'allowed_domain' "$c"; then
|
||||||
output_ok
|
output_ok
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue