Smile-SA / gdpr-dump

Utility that creates anonymized database dumps (MySQL only). Provides default config templates for Magento, Drupal and Shopware.
GNU General Public License v3.0
182 stars 47 forks source link

Use the php tokenizer to validate converter conditions #114

Closed guvra closed 8 months ago

guvra commented 8 months ago

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.