diff options
author | Dirk Brenken <dev@brenken.org> | 2023-07-09 07:01:17 +0200 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2023-07-09 07:01:17 +0200 |
commit | 5e2a9f082aa271dd2b7c2bd7f884bc2aef0b9be6 (patch) | |
tree | 72eb284cb566341c1bb77000d22d010164ff3c2d /net/banip/files | |
parent | 88e64a2ae488e1cd8d4d539c6d976c9ccc728d2f (diff) |
banip: update 0.8.9-4
* made the etag id parsing more bulletproof (to catch unverified etags as well)
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'net/banip/files')
-rw-r--r-- | net/banip/files/banip-functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/banip/files/banip-functions.sh b/net/banip/files/banip-functions.sh index ad642ee12..170c7326c 100644 --- a/net/banip/files/banip-functions.sh +++ b/net/banip/files/banip-functions.sh @@ -515,7 +515,7 @@ f_etag() { [ ! -f "${ban_backupdir}/banIP.etag" ] && : >"${ban_backupdir}/banIP.etag" http_head="$("${ban_fetchcmd}" ${ban_etagparm} "${feed_url}" 2>&1)" http_code="$(printf "%s" "${http_head}" | "${ban_awkcmd}" 'tolower($0)~/^http\/[0123\.]+ /{printf "%s",$2}')" - etag_id="$(printf "%s" "${http_head}" | "${ban_awkcmd}" '{FS="\""}tolower($0)~/^[[:space:]]*etag: /{printf "%s",$2}')" + etag_id="$(printf "%s" "${http_head}" | "${ban_awkcmd}" 'tolower($0)~/^[[:space:]]*etag: /{gsub("\"","");printf "%s",$2}')" etag_rc="${?}" if [ "${http_code}" = "404" ] || { [ "${etag_rc}" = "0" ] && [ -n "${etag_id}" ] && "${ban_grepcmd}" -q "^${feed}${feed_suffix}.*${etag_id}\$" "${ban_backupdir}/banIP.etag"; }; then |