forked from rDrama/rDrama
1
0
Fork 0

fix 500 error that's been happening for like a year (thank you snakes and spidey)

master
Aevann1 2022-08-27 00:03:15 +02:00
parent e0255a0fa4
commit 1a47d9a916
1 changed files with 2 additions and 1 deletions

View File

@ -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)