Skip to content

Commit

Permalink
add filename cleanse
Browse files Browse the repository at this point in the history
  • Loading branch information
mwfarb committed Feb 5, 2025
1 parent eb869a9 commit 261b14d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arena/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def upload_store_file(self, web_host, sceneid, src_file_path, dest_file_path=Non
# send file to filestore
if not dest_file_path:
dest_file_path = Path(src_file_path).name
safe_file_path = dest_file_path # re.sub(dest_file_path, r"/(\W+)/gi", "-", dest_file_path)
safe_file_path = re.sub(r"/(\W+)/gi", "-", dest_file_path)
if self._user_info["is_staff"]:
store_res_prefix = f"users/{self._user_info['username']}/"
else:
Expand Down

0 comments on commit 261b14d

Please sign in to comment.