Skip to content
New issue

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

<? tag causes infinite loop #74

Closed
Visualq opened this issue Jul 24, 2015 · 3 comments
Closed

<? tag causes infinite loop #74

Visualq opened this issue Jul 24, 2015 · 3 comments

Comments

@Visualq
Copy link
Contributor

Visualq commented Jul 24, 2015

Using <? In a tpl file crashes causes an infinite loop. It happens with a clean install of smarty 3.1.27.

This tag is used in XML files which are rendered using a Smarty template.
Even though I have public $php_handling set to self::PHP_PASSTHRU;. A working solution for now is to wrap the tag in {literal}{/literal} or let Smarty print the tag for me {"<?"}

@Visualq Visualq changed the title <? tag cause infinite loop <? tag causes infinite loop Jul 24, 2015
@uwetews
Copy link
Contributor

uwetews commented Jul 25, 2015

Do you have some example code showing this problem?

Could you try the dev-master version? There have been a couple of bugfixes and parser changes which could be related.

@Visualq
Copy link
Contributor Author

Visualq commented Jul 25, 2015

Master branch still causes the problem.

Shortest way to replicate:

fetch('eval:');

It appears that it requires the ?> tag in order to make it fail .

On 25-07-15 19:24, uwetews wrote:

Do you have some example code showing this problem?

Could you try the dev-master version? There have been a couple of
bugfixes and parser changes which could be related.


Reply to this email directly or view it on GitHub
#74 (comment).

@uwetews
Copy link
Contributor

uwetews commented Jul 25, 2015

The fix is now in dev-master

@uwetews uwetews closed this as completed Jul 25, 2015
think-mcunanan pushed a commit to think-mcunanan/smarty that referenced this issue Mar 22, 2023
…ts-to-kanzashiapi-are-not-executed

Redmine #5396: かんざし連携APIへのリクエストが実行されない
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants