From 954abcce76e78a9200d194a30f34a26aa3a5d472 Mon Sep 17 00:00:00 2001 From: z4yx Date: Fri, 6 Mar 2020 23:09:20 +0800 Subject: [PATCH] nginx or browser is not happy with backslash --- github-release.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-release.py b/github-release.py index 00e0ed5..4c8298d 100755 --- a/github-release.py +++ b/github-release.py @@ -78,7 +78,7 @@ def ensure_safe_name(filename): elif filename == '..': return '. .' else: - return filename.replace('/', '\\') + return filename.replace('/', '\\').replace('\\', '_') def main():