From 69fae04bb8537965b5f6d2196aa112a61c70cce4 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 26 Jun 2023 10:48:38 +0530 Subject: [PATCH] fall back to use url as is --- pandora/app/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora/app/views.py b/pandora/app/views.py index b6337b4b5..411fb8138 100644 --- a/pandora/app/views.py +++ b/pandora/app/views.py @@ -53,7 +53,10 @@ def embed(request, id): }) def redirect_url(request, url): - url = base64.decodebytes(url.encode()).decode() + try: + url = base64.decodebytes(url.encode()).decode() + except: + pass if settings.CONFIG['site'].get('sendReferrer', False): return redirect(url) else: