This commit is contained in:
Aevann1 2021-10-21 17:06:55 +02:00
parent 2cce840c39
commit 767af21f50
3 changed files with 36 additions and 30 deletions

View file

@ -100,7 +100,7 @@ def settings_profile_post(v):
updated = True
v.is_nofollow = request.values.get("nofollow", None) == 'true'
if request.values.get("bio"):
if request.values.get("bio") or request.files.get('file'):
bio = request.values.get("bio")[:1500]
for i in re.finditer('^(https:\/\/.*\.(png|jpg|jpeg|gif|webp|PNG|JPG|JPEG|GIF|WEBP|9999))', bio, re.MULTILINE):