From 1a47d9a916841c419fb60a63d82dccb63aaa5b1e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 27 Aug 2022 00:03:15 +0200 Subject: [PATCH] fix 500 error that's been happening for like a year (thank you snakes and spidey) --- 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 232edcc41..a6cec3621 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1256,7 +1256,8 @@ def pin_post(post_id, v): def get_post_title(v): url = request.values.get("url") - if not url or '\\' in url: abort(400) + if not url or '\\' in url or 'pomf2.lain.la' in url: + abort(400) try: x = requests.get(url, headers=titleheaders, timeout=5, proxies=proxies) except: abort(400)