fragmede b6fd50c889
Balance security with functionality in model downloader
- Relax overly restrictive filename validation
- Allow spaces, parentheses, brackets in model filenames (common in model names)
- Keep essential security: no path traversal, no hidden files
- Remove strict alphanumeric-only regex that was blocking valid files
- Keep URL validation but remove overly restrictive host whitelist
- Maintain protection against directory traversal attacks
- Still validate file extensions and model types

The downloader now works with real-world model filenames while remaining secure
against path traversal and other attacks.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-27 06:13:21 -07:00
..