mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-22 09:51:06 +00:00
chore: update wetransfer script from upstream
This commit is contained in:
committed by
borgmanJeremy
parent
186da9e08f
commit
d6a7ca6e6d
@@ -115,7 +115,7 @@ def download_url(url: str) -> str:
|
||||
def _file_unquote(file: str) -> str:
|
||||
"""Given a URL encoded file unquote it.
|
||||
|
||||
All occurrences of `\', `/' and `../' will be ignored to avoid possible
|
||||
All occurences of `\', `/' and `../' will be ignored to avoid possible
|
||||
directory traversals.
|
||||
"""
|
||||
return urllib.parse.unquote(file).replace('../', '').replace('/', '').replace('\\', '')
|
||||
@@ -297,7 +297,7 @@ def upload(files: List[str], message: str = '', sender: str = None,
|
||||
Also accepts optional parameters:
|
||||
- `message': message used as a description of the transfer
|
||||
- `sender': email address used to receive an ACK if the upload is
|
||||
successful. For every download by the recipients an email
|
||||
successfull. For every download by the recipients an email
|
||||
will be also sent
|
||||
- `recipients': list of email addresses of recipients. When the upload
|
||||
succeed every recipients will receive an email with a link
|
||||
|
||||
Reference in New Issue
Block a user