1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-10-31 23:26:20 +00:00

Bugfix from testrun

This commit is contained in:
Ozzie Isaacs 2024-01-17 20:29:47 +01:00
parent 3814fbf08f
commit 31a344b410
2 changed files with 949 additions and 2028 deletions

View File

@ -1354,7 +1354,7 @@ def login():
@limiter.limit("3/minute", key_func=lambda: request.form.get('username', "").strip().lower()) @limiter.limit("3/minute", key_func=lambda: request.form.get('username', "").strip().lower())
def login_post(): def login_post():
form = request.form.to_dict() form = request.form.to_dict()
username = form.get('username', "").strip().lower().replace("\n","\\n").replace("\r","") username = form.get('username', "").strip().lower().replace("\n","").replace("\r","")
try: try:
limiter.check() limiter.check()
except RateLimitExceeded: except RateLimitExceeded:

File diff suppressed because it is too large Load Diff