From a7dd7a812fd217522929fd7956b17090fac3f61c Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 4 Oct 2019 11:08:52 +0200 Subject: [PATCH] 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. --- fdroidserver/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 7529dbff..c536e840 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -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):