chiark / gitweb /
Don't break os.symlink if app names contain '/'
[fdroidserver.git] / fdroidserver / update.py
index eb04ddbb8d9e93a0b9ee49a959da6d0ffa9206d2..42806ce5b3f411132d5037d473c88c17c99cbb4a 100644 (file)
@@ -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)