mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
adblock: release 4.5.3-1
* refine the domain validator regarding prefix handling, esp. relevant for ABP-syntax * adapted the adguard feed to make use of the new prefix handling * LuCI: various fixes & optimizations Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=adblock
|
||||
PKG_VERSION:=4.5.2
|
||||
PKG_RELEASE:=4
|
||||
PKG_VERSION:=4.5.3
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=GPL-3.0-or-later
|
||||
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
},
|
||||
"adguard": {
|
||||
"url": "https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt",
|
||||
"rule": "feed 3 [|^]",
|
||||
"rule": "feed || 3 [|^]",
|
||||
"size": "L",
|
||||
"descr": "general"
|
||||
},
|
||||
|
||||
@@ -284,7 +284,7 @@ f_chkdom() {
|
||||
# add www. for google safe search
|
||||
if (type=="google" && domain ~ /^\.+/) { sub(/^\.+/, "", domain); domain="www."domain }
|
||||
# check optional search prefix
|
||||
if (pre != "" && $1 != pre) next
|
||||
if (pre != "" && index($0, pre) != 1) next
|
||||
# skip empty lines, comments and special domains
|
||||
if (domain == "" || domain ~ ("^(#|localhost|loopback|" chk ")")) next
|
||||
# no domain with trailing dot
|
||||
@@ -1628,7 +1628,7 @@ f_main() {
|
||||
done
|
||||
f_list prepare
|
||||
) &
|
||||
|
||||
|
||||
# normal handling for feeds without categories
|
||||
#
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user