From 2e9dcac031cc906842635bc539355f98bc89c72e Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jun 21 2021 13:34:10 +0000 Subject: fix crash when changing timezone previously, when changing the timezone display for a calendar, fedocal would crash. this fixes this issue Resolves: #201 Signed-off-by: Ryan Lerch --- diff --git a/fedocal/__init__.py b/fedocal/__init__.py index 1f75a3d..aabfe62 100644 --- a/fedocal/__init__.py +++ b/fedocal/__init__.py @@ -1695,7 +1695,7 @@ def update_tz(): """ url = flask.url_for('index') if flask.request.referrer: # pragma: no cover - urltmp = urllib.unquote(flask.request.referrer.split('?', 1)[0]) + urltmp = urllib.parse.unquote(flask.request.referrer.split('?', 1)[0]) if is_safe_url(urltmp): url = urltmp else: