From 5b8ad403dd4d1737f72be1f58030a8cd06476b26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 31 Jan 2026 09:40:12 +0100 Subject: [PATCH] [xenforo] decode '/goto/link-confirmation' links (#8964) --- gallery_dl/extractor/xenforo.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gallery_dl/extractor/xenforo.py b/gallery_dl/extractor/xenforo.py index 32a5609d..dc25fa15 100644 --- a/gallery_dl/extractor/xenforo.py +++ b/gallery_dl/extractor/xenforo.py @@ -11,6 +11,7 @@ from .common import BaseExtractor, Message from .. import text, exception from ..cache import cache +import binascii class XenforoExtractor(BaseExtractor): @@ -65,6 +66,9 @@ class XenforoExtractor(BaseExtractor): if ext[0] == "/": if ext[1] == "/": ext = "https:" + ext + elif ext.startswith("/goto/link-confirmation?"): + params = text.parse_query(text.unescape(ext[24:])) + ext = binascii.a2b_base64(params["url"]).decode() else: continue data["num"] += 1