Autoescape + raw modifier in a tag that does not print, followed by a printed variable
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 63/100
Research direction
The issue provides a regression test using eval:{$bar = $foo|raw}{$foo} and expects the second output to remain autoescaped. Start by locating the existing autoescape and raw modifier tests in the repository, then trace how assignment tags affect the next printed variable. Done means the regression test passes and the following output is still escaped.
Written by the indexing model from the issue text.
Description
public function testAutoEscapeRawInAssignDoesNotAffectNextOutput() {
$tpl = $this->smarty->createTemplate('eval:{$bar = $foo|raw}{$foo}');
$tpl->assign('foo', '<[email protected]>');
$this->assertEquals("<[email protected]>", $this->smarty->fetch($tpl));
}
- Dominant language
- PHP
- Stars
- 2.3k
- Forks
- 705
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from smarty-php/smarty
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
smarty-php/smarty#1216 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 20/100
smarty-php/smarty#1218 · 2 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
smarty-php/smarty#1214 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
smarty-php/smarty#1213 · 1 comment · 1 reaction ·
-
Deprecation warning in demo app, Smarty 5.8.4, PHP 8.4Possibly taken @h-marumoto claimed this 55 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 52/100
smarty-php/smarty#1208 · 1 comment ·
All issues in smarty-php/smarty
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Automattic/blocks-engine#4355 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
agentic bug complete-verify
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
MagnaCapax/PMSS#1234 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
yiisoft/yii2-docker#193 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
10up/ElasticPress#4402 ·
Maintainers usually reply within 2 days