We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version: Latte 3.0.10 (latest), PHP 8.1.24
Using filter replace in Sandbox & StrictParsing mode:
Fatal error: Uncaught Latte\CompileException: Forbidden variable $this. in vendor/latte/latte/src/Latte/Essential/Passes.php on line 113
<?php require_once 'vendor/autoload.php'; $latte = new \Latte\Engine; $latte->setPolicy(\Latte\Sandbox\SecurityPolicy::createSafePolicy()); $latte->setSandboxMode(); $latte->setStrictParsing(); $latte->setLoader(new \Latte\Loaders\StringLoader); $latte->render('{$test|replace("foo", "case")}', ['test' => 'test-foo']);
Output of string test-case.
test-case
The text was updated successfully, but these errors were encountered:
bdb37ec
uses AuxiliaryNode to hide usage of internals [Closes #347]
3fe551e
30b3224
f1fe3e0
No branches or pull requests
Version: Latte 3.0.10 (latest), PHP 8.1.24
Bug Description
Using filter replace in Sandbox & StrictParsing mode:
Steps To Reproduce
Expected Behavior
Output of string
test-case
.The text was updated successfully, but these errors were encountered: