fix(upload): relax filename validation regex to allow broader Unicode and special chars (closes #29)

This commit is contained in:
Ryan
2025-05-08 04:58:57 -04:00
committed by GitHub
parent b4d6f01432
commit 8c70783d5a
2 changed files with 2 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
- Defined `AUTH_HEADER` (normalized, e.g. `"X_REMOTE_USER"`) based on `loginOptions.authHeaderName`.
- Inserted a **proxy-only auto-login** block *before* the usual session/auth checks:
If `AUTH_BYPASS` is true and the trusted header (`$_SERVER['HTTP_' . AUTH_HEADER]`) is present, bump the session, mark the user authenticated/admin, load their permissions, and skip straight to JSON output.
- Relax filename validation regex to allow broader Unicode and special chars
### src/controllers/AdminController.php