mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Stripping whitespace from URL to avoid accidental duplicates.
This commit is contained in:
parent
b33dabcbb0
commit
85271f8dbb
1 changed files with 2 additions and 1 deletions
|
|
@ -24,7 +24,8 @@ logger = logger.getChild(__name__)
|
|||
)
|
||||
@wrol_mode_check
|
||||
async def post_archive(_: Request, data: dict):
|
||||
url = data['url']
|
||||
# Remove whitespace from URL.
|
||||
url = data['url'].strip()
|
||||
lib.new_archive(url)
|
||||
return response.empty()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue