adblock: update 4.4.2-2

* sanitize the json reporting output

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken committed 2025-05-31 23:07:03 +02:00
1 parent 5607728fe6
commit 7825affaf9
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=adblock
PKG_VERSION:=4.4.2
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
+4 -4
View File
@@ -1544,11 +1544,11 @@ f_report() {
;;
"json")
if [ "${adb_map}" = "1" ]; then
jsn="$("${adb_catcmd}" ${report_jsn} ${map_jsn})"
printf "[%s]]\n" "${jsn}"
jsn="$("${adb_catcmd}" ${report_jsn} ${map_jsn} 2>/dev/null)"
[ -n "${jsn}" ] && printf "[%s]]\n" "${jsn}"
else
jsn="$("${adb_catcmd}" ${report_jsn})"
printf "[%s]\n" "${jsn}"
jsn="$("${adb_catcmd}" ${report_jsn} 2>/dev/null)"
[ -n "${jsn}" ] && printf "[%s]\n" "${jsn}"
fi
;;
"mail")