From c71d6f264c38b8ac2592d805e0a4aeee43803fcb Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 18 Oct 2023 21:23:53 +0300 Subject: [PATCH] fix uploading file in bio alone --- files/routes/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index 4591ad8a42..4236cef84a 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -315,7 +315,7 @@ def settings_personal_post(v): elif not updated and FEATURES['USERS_PROFILE_BODYTEXT'] and \ (request.values.get("bio") or request.files.get('file')): - bio = request.values.get("bio")[:BIO_FRIENDS_ENEMIES_LENGTH_LIMIT] + bio = request.values.get("bio", "")[:BIO_FRIENDS_ENEMIES_LENGTH_LIMIT] bio = process_files(request.files, v, bio) bio = bio.strip() bio_html = sanitize(bio, blackjack="bio")