We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a8761d commit 9299241Copy full SHA for 9299241
src/murfey/server/api/bootstrap.py
@@ -302,7 +302,9 @@ def get_msys2_setup(setup_file: str):
302
raise ValueError("Unallowed characters present in requested setup file")
303
304
# Allow only '.exe', 'tar.xz', 'tar.zst', or '.sig' files
305
- if not any(setup_file.endswith(ext) for ext in (msys2_file_ext)):
+ if not setup_file.startswith("msys2") and not any(
306
+ setup_file.endswith(ext) for ext in (msys2_file_ext)
307
+ ):
308
raise ValueError(f"{setup_file!r} is not a valid executable")
309
310
installer = requests.get(f"{msys2_url}/distrib/{setup_file}")
0 commit comments