From ac41cb9a82f0f60ccf731b30a697d8d6e5df044a Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 17 Aug 2023 02:46:42 +0300 Subject: [PATCH] add missing process_files to sigs --- files/routes/settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index 1500c2d89..88023bb22 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -224,11 +224,15 @@ def settings_personal_post(v): abort(403, f"Signatures are only available to {patron}s!") sig = request.values.get("sig")[:200].replace('\n','').replace('\r','') + + sig = process_files(request.files, v, sig) + sig = sig[:200].strip() # process_files potentially adds characters to the post + sig_html = sanitize(sig, blackjack="signature") if len(sig_html) > 1000: abort(400, "Your sig is too long") - v.sig = sig[:200] + v.sig = sig v.sig_html=sig_html g.db.add(v) return {"message": "Your sig has been updated."}