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

Use the php tokenizer to validate converter conditions #114

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

guvra
Copy link
Collaborator

@guvra guvra commented Feb 27, 2024

Currently, conditions are validated with regular expressions, which is not safe and can also result in false positives.

This PR uses the php tokenizer to parse the condition and make sure it is valid.

@guvra guvra force-pushed the fix-condition-builder-validation branch from 27f7c17 to 7ba44b4 Compare February 27, 2024 11:15
@guvra guvra changed the title Draft: Use the php tokenizer to validate converter conditions Use the php tokenizer to validate converter conditions Feb 27, 2024
@guvra guvra merged commit 6da41f4 into main Feb 27, 2024
3 checks passed
@guvra guvra deleted the fix-condition-builder-validation branch February 27, 2024 13:21
guvra added a commit that referenced this pull request Mar 4, 2024
guvra added a commit that referenced this pull request Mar 4, 2024
@guvra guvra added the feature New feature or request label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant