LWT 3.2.1: First-boot database crash & reverse-proxy mixed-content fixes
Patch release fixing two issues that surfaced since 3.2.0.
Fixed
- Database error on first boot with CRLF schema files (#241). A fresh install could fail to start with "Internal Server Error - A database error occurred." (MySQL error 1064) while applying
db/schema/baseline.sql.SqlFileParsersplit statements on';' . PHP_EOL— which is";\n"on a Linux host — so a schema file with Windows (CRLF) line endings was never split, and the whole file was sent to MySQL as a single multi-statement query that it rejected. The parser now normalizes CRLF/CR to LF before splitting, so parsing no longer depends on the file's origin OS. - Mixed-content asset blocking behind a TLS-terminating reverse proxy (#240). The Content-Security-Policy now emits
upgrade-insecure-requestson HTTPS connections, so any strayhttp://subresource is transparently upgraded tohttps://instead of being blocked as mixed content — this is what left the language picker (and other scripts) unloaded on installs whose proxy doesn't propagate the scheme. The directive is omitted over plain HTTP so local development isn't forced to upgrade.
Full Changelog: 3.2.0...3.2.1