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

Fix Plugin and Template name validation #15349

Merged
merged 4 commits into from
Jan 18, 2021

Conversation

opengeek
Copy link
Member

What does it do?

Expands the qualifying character patterns for Template and Plugin names to prevent breaking sites during upgrade.

Why is it needed?

PR #15146 reduced the available characters in these non-callable element names. This breaks older sites that used common character patterns in their names.

How to test

Attempt to add additional strings to a plugin or template names. It still blocks callable code, but allows commonly used special characters.

Related issue(s)/PR(s)

issue #15323
supercedes #15348

@opengeek opengeek added this to the v2.8.2 milestone Dec 11, 2020
@opengeek opengeek requested a review from Mark-H as a code owner December 11, 2020 23:27
@cla-bot cla-bot bot added the cla-signed CLA confirmed for contributors to this PR. label Dec 11, 2020
@Ibochkarev Ibochkarev added the pr/review-needed Pull request requires review and testing. label Dec 12, 2020
@opengeek opengeek linked an issue Dec 12, 2020 that may be closed by this pull request
@JoshuaLuckers JoshuaLuckers added pr/ready-for-merging Pull request reviewed and tested and ready for merging. and removed pr/review-needed Pull request requires review and testing. labels Jan 12, 2021
matdave and others added 3 commits January 18, 2021 13:22
The schema files could not be used to regenerate the map files because < is not allowed in XML attribute values. Replaced with the &lt; entity to resolve.
@opengeek opengeek force-pushed the fix-plugin-template-validation branch from 9f949f6 to 6765692 Compare January 18, 2021 20:23
@opengeek opengeek merged commit 637039d into modxcms:2.x Jan 18, 2021
@opengeek opengeek deleted the fix-plugin-template-validation branch January 18, 2021 20:39
@Ruslan-Aleev Ruslan-Aleev added the pr/port-to-3 Pull request has to be ported to 3.x. label Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed CLA confirmed for contributors to this PR. pr/port-to-3 Pull request has to be ported to 3.x. pr/ready-for-merging Pull request reviewed and tested and ready for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overly Agressive Template & Plugin Name Validation
5 participants