dfsfsd
This commit is contained in:
parent
00b18ca1dc
commit
4dab5b9050
5 changed files with 9 additions and 9 deletions
|
@ -41,7 +41,7 @@ def removebackground(v):
|
|||
@auth_required
|
||||
@validate_formkey
|
||||
def settings_profile_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
|
||||
|
||||
updated = False
|
||||
|
||||
|
@ -500,7 +500,7 @@ def settings_log_out_others(v):
|
|||
@auth_required
|
||||
@validate_formkey
|
||||
def settings_images_profile(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
|
||||
|
||||
if request.headers.get("cf-ipcountry") == "T1": return "Image uploads are not allowed through TOR.", 403
|
||||
|
||||
|
@ -531,7 +531,7 @@ def settings_images_profile(v):
|
|||
@auth_required
|
||||
@validate_formkey
|
||||
def settings_images_banner(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
|
||||
|
||||
if request.headers.get("cf-ipcountry") == "T1": return "Image uploads are not allowed through TOR.", 403
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue