diff --git a/cps/web.py b/cps/web.py index e1651012..24c5cacd 100644 --- a/cps/web.py +++ b/cps/web.py @@ -1354,7 +1354,7 @@ def login(): @limiter.limit("3/minute", key_func=lambda: request.form.get('username', "").strip().lower()) def login_post(): 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: limiter.check() except RateLimitExceeded: diff --git a/test/Calibre-Web TestSummary_Linux.html b/test/Calibre-Web TestSummary_Linux.html index cbc8dd34..234297de 100644 --- a/test/Calibre-Web TestSummary_Linux.html +++ b/test/Calibre-Web TestSummary_Linux.html @@ -37,20 +37,20 @@
-

Start Time: 2024-01-13 20:33:30

+

Start Time: 2024-01-15 19:07:05

-

Stop Time: 2024-01-14 03:06:58

+

Stop Time: 2024-01-16 00:20:43

-

Duration: 5h 26 min

+

Duration: 4h 41 min

@@ -234,12 +234,12 @@ - + TestBackupMetadata 21 + 20 1 - 8 - 12 + 0 0 Detail @@ -248,108 +248,29 @@ - +
TestBackupMetadata - test_backup_all
- -
- FAIL -
- - - - + PASS - +
TestBackupMetadata - test_backup_change_book_author
- -
- FAIL -
- - - - + PASS - +
TestBackupMetadata - test_backup_change_book_description
- -
- FAIL -
- - - - + PASS @@ -363,150 +284,66 @@ First has 0, Second has 2: '/' - +
TestBackupMetadata - test_backup_change_book_language
- -
- FAIL -
- - - - + PASS - +
TestBackupMetadata - test_backup_change_book_publisher
- -
- FAIL -
- - - - + PASS - +
TestBackupMetadata - test_backup_change_book_publishing_date
- -
- ERROR -
- - - - + PASS - +
TestBackupMetadata - test_backup_change_book_rating
- -
- ERROR -
- - - - + PASS - +
TestBackupMetadata - test_backup_change_book_series_index
- ERROR + FAIL
-