From: Daniel Martí Date: Sun, 14 Dec 2014 14:43:22 +0000 (+0100) Subject: Don't break os.symlink if app names contain '/' X-Git-Tag: 0.3.0~11 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=606cda591df7ba39a56a1f960436cf99d9f4a9cc;p=fdroidserver.git Don't break os.symlink if app names contain '/' --- diff --git a/fdroidserver/update.py b/fdroidserver/update.py index eb04ddbb..42806ce5 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -868,7 +868,7 @@ def make_index(apps, sortedids, apks, repodir, archive, categories): if current_version_file is not None \ and config['make_current_version_link'] \ and repodir == 'repo': # only create these - sanitized_name = re.sub('''[ '"&%?+=]''', '', + sanitized_name = re.sub('''[ '"&%?+=/]''', '', app[config['current_version_name_source']]) apklinkname = sanitized_name + '.apk' current_version_path = os.path.join(repodir, current_version_file)