🔒 Security
- Sandbox: the callable on the right side of the pipe operator
|>goes through the policy, so on PHP 8.5+ a sandboxed template can no longer call any function or method (GHSA-9hh3-mgwh-gpj4, reported by NitroHex Security) - Sandbox: superglobals such as
$_SERVER,$_ENV,$_COOKIEor$_SESSIONare forbidden, so a sandboxed template can no longer read secrets or write session data; a template using them now reports a security violation (GHSA-7395-733q-q47j, reported by NitroHex Security) - Trusted outputs (an
Htmlobject,|noescape) printed side by side as{$a}{$b}inside<textarea>or<title>can no longer put together a</textarea>that ends the element
🐛 Bug Fixes
- Templates compiled by an older Latte are recompiled after an upgrade also with
autoRefreshoff, so fixes of the compiler, such as those above, take effect without clearing the cache - An unpacked argument after a named one, as in
{include 'foo.latte', name: $default, ...$args}, no longer reports the deprecation of positional arguments after named ones