adblock: bugfix 4.0.7-9
authorDirk Brenken <dev@brenken.org>
Wed, 28 Jul 2021 06:01:44 +0000 (08:01 +0200)
committerDirk Brenken <dev@brenken.org>
Wed, 28 Jul 2021 06:01:44 +0000 (08:01 +0200)
* fix regex to prepare google safesearch domains

Signed-off-by: Dirk Brenken <dev@brenken.org>
net/adblock/Makefile
net/adblock/files/adblock.sh

index cad60270f343ca9ecc2cd321c530a567a04c74c7..70b0533b2c30ad2df9e6f994c66a70049c36980d 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock
 PKG_VERSION:=4.0.7
-PKG_RELEASE:=8
+PKG_RELEASE:=9
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
 
index a0c2c0650ec37de8dcdc9c3b9f206f0fc1c89735..1f2bf6f8579ccda08e29a7db3f232b29bc72fe53 100755 (executable)
@@ -705,7 +705,7 @@ f_list()
                "safesearch")
                        case "${src_name}" in
                                "google")
-                                       rset="/^(\\.[[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{printf \"%s\n%s\n\",tolower(\"www\"\$1),tolower(substr(\$1,2,length(\$1)))}"
+                                       rset="/^\\.([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{printf \"%s\n%s\n\",tolower(\"www\"\$1),tolower(substr(\$1,2,length(\$1)))}"
                                        safe_url="https://www.google.com/supported_domains"
                                        safe_cname="forcesafesearch.google.com"
                                        safe_domains="${adb_tmpdir}/tmp.load.safesearch.${src_name}"