mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-11 10:27:27 +08:00
Fix two bugs
- Fix a bug when downloading a beyond chart which has another audio file. - Fix a safety problem when downloading.
This commit is contained in:
@@ -702,7 +702,7 @@ def download_song(user_id):
|
||||
def download(file_path):
|
||||
try:
|
||||
t = request.args.get('t')
|
||||
message = server.arcdownload.is_token_able_download(t)
|
||||
message = server.arcdownload.is_token_able_download(t, file_path)
|
||||
if message == 0:
|
||||
path = os.path.join('./database/songs', file_path)
|
||||
if os.path.isfile(path) and not('../' in path or '..\\' in path):
|
||||
|
||||
Reference in New Issue
Block a user