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

Global variables $_GET and $_POST not properly parsed #77

Closed
Visualq opened this issue Aug 4, 2015 · 1 comment
Closed

Global variables $_GET and $_POST not properly parsed #77

Visualq opened this issue Aug 4, 2015 · 1 comment

Comments

@Visualq
Copy link
Contributor

Visualq commented Aug 4, 2015

In Smarty 3.1.27 {$smarty.get.q} becomes $_GET['q'] as it should, however in the master branch {$smarty.get.q} becomes $_GET instead of $_GET['q']

// test.php
include 'smarty-master/libs/Smarty.class.php';
$smarty = new \Smarty();
$smarty->fetch('global_variables.tpl');

// global_variables.tpl
{$smarty.get.q|print_r}
{$smarty.post.q|print_r}

@uwetews
Copy link
Contributor

uwetews commented Aug 23, 2015

The fix is now in the master branch

@uwetews uwetews closed this as completed Aug 23, 2015
think-mcunanan pushed a commit to think-mcunanan/smarty that referenced this issue Mar 22, 2023
Merge release 2.0.7.3 into master branch
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