From 23de19758e5dea5911845ff524ba4b6cae948de6 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 17 Nov 2024 20:22:35 +0200 Subject: [PATCH] consistency --- files/routes/posts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 5067708ee..69f18abe6 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -35,7 +35,8 @@ from files.__main__ import app, limiter def _make_post_url(): url = request.values.get("url", "").replace('\x00', '').strip() if url == '': return None - if '\\' in url: stop(400) + if '\\' in url: + stop(400) if len(url) > 2048: stop(400, "There's a 2048 character limit for URLs!") return normalize_url(url)