mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 10:21:05 +03:00
update: strip leading/tailing whitespace on author contact fields
Whitespace is not valid in email addresses, URLs, or phone numbers, and the triple-t/fastlane file format generally has a newline at the end.
This commit is contained in:
parent
1ef4f74aff
commit
a7dd7a812f
1 changed files with 1 additions and 1 deletions
|
@ -717,7 +717,7 @@ def _set_author_entry(app, key, f):
|
||||||
with open(f, errors='replace') as fp:
|
with open(f, errors='replace') as fp:
|
||||||
text = fp.read()[:limit]
|
text = fp.read()[:limit]
|
||||||
if len(text) > 0:
|
if len(text) > 0:
|
||||||
app[key] = text
|
app[key] = text.strip()
|
||||||
|
|
||||||
|
|
||||||
def _strip_and_copy_image(in_file, outpath):
|
def _strip_and_copy_image(in_file, outpath):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue