master
Aevann1 2021-09-03 16:51:52 +02:00
parent a3ce6a9d2c
commit 8a4490d748
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ def settings_profile_post(v):
for i in re.finditer('^(https:\/\/.*\.(png|jpg|jpeg|gif|PNG|JPG|JPEG|GIF|9999))', bio, re.MULTILINE): bio = bio.replace(i.group(1), f'![]({i.group(1)})')
bio = bio.replace("\n", "\n\n").replace("\n\n\n\n\n\n", "\n\n").replace("\n\n\n\n", "\n\n").replace("\n\n\n", "\n\n")
print(request.files)
# check for uploaded image
if request.files.get('file') and request.headers.get("cf-ipcountry") != "T1":