chiark / gitweb /
Don't break os.symlink if app names contain '/'
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 14 Dec 2014 14:43:22 +0000 (15:43 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sun, 14 Dec 2014 14:43:22 +0000 (15:43 +0100)
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)