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

Variables substituted directly into regex #26

Closed
Bilge opened this issue Mar 3, 2021 · 0 comments
Closed

Variables substituted directly into regex #26

Bilge opened this issue Mar 3, 2021 · 0 comments

Comments

@Bilge
Copy link

Bilge commented Mar 3, 2021

It is dangerous to blindly substitute user data into regular expressions. If any such substitutions contain regex meta-characters, unexpected behaviour will occur. preg_quote() should be used to pass such variables into regular expressions.

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