mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
The WEB_STATIC file server checked containment with a plain string prefix (filePath.startsWith(WEB_DIST)), which a sibling directory sharing that prefix passes without actually being inside WEB_DIST - e.g. WEB_DIST "/app/web/dist" also accepts "/app/web/dist-backup/...". Now requires an exact match or a path-separator boundary. WEB_STATIC defaults to on, so this affects any self-hoster serving the UI from the gateway with the stock config, not just this deployment. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU