mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-19 14:18:24 -04: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:
@@ -717,7 +717,7 @@ def _set_author_entry(app, key, f):
|
||||
with open(f, errors='replace') as fp:
|
||||
text = fp.read()[:limit]
|
||||
if len(text) > 0:
|
||||
app[key] = text
|
||||
app[key] = text.strip()
|
||||
|
||||
|
||||
def _strip_and_copy_image(in_file, outpath):
|
||||
|
||||
Reference in New Issue
Block a user