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

Sanitize $pretext output for fun and profit #1

Open
fulltrucker opened this issue Feb 5, 2019 · 0 comments
Open

Sanitize $pretext output for fun and profit #1

fulltrucker opened this issue Feb 5, 2019 · 0 comments

Comments

@fulltrucker
Copy link
Owner

It might be good to sanitize the output of the $pretext variable, for best practices and because we don't want malicious code to sneak in. Presumably it's "okay" to do it the way I have it, since the input field is only accessible if a user is logged in to the Admin plugin, but we should sanitize it anyway.

https://learn.getgrav.org/security/developers
http://php.net/manual/en/filter.filters.sanitize.php

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

1 participant