This commit is contained in:
Aevann1 2021-10-03 21:36:29 +02:00
parent 00b18ca1dc
commit 4dab5b9050
5 changed files with 9 additions and 9 deletions

View file

@ -527,7 +527,7 @@ def thumbnail_thread(pid):
@is_not_banned
@validate_formkey
def submit_post(v):
if request.content_length > 16 * 1024 * 1024: abort(413)
if request.content_length > 4 * 1024 * 1024: return "Max file size is 4 MB.", 413
title = request.values.get("title", "")
url = request.values.get("url", "")