Skip to content

Commit

Permalink
fix(api): allow numbers in archive filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Dec 24, 2023
1 parent 15b9b51 commit 4eeb68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/convert/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def convert_extract_archive(
return True, dest_path


SAFE_NAME = r"^[-_a-zA-Z/\\\.]+$"
SAFE_NAME = r"^[-_a-zA-Z0-9/\\\.]+$"


def is_safe(name: str):
Expand Down

0 comments on commit 4eeb68c

Please sign in to comment.