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

Sandbox methods is case-sensitive, but methods are not #361

Closed
beberlei opened this issue Jun 17, 2011 · 1 comment
Closed

Sandbox methods is case-sensitive, but methods are not #361

beberlei opened this issue Jun 17, 2011 · 1 comment

Comments

@beberlei
Copy link

In sandbox mode, if you have a configuration:

        $methods = array(
            'User' => array('getName'),
        );

It will throw a security exception when adressing it with {{ user.name }}. you have to change the config to "getname" or adress it with user.Name to make it work. Since methods are case-insensitive in php and twig this check should be done case-insensitive.

@fabpot
Copy link
Contributor

fabpot commented Jun 24, 2011

fixed: fabpot@83a0cba

@fabpot fabpot closed this as completed Jun 24, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants