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

Bug: Pattern filter not working correctly for Name entry field #220

Closed
nielsonm236 opened this issue Feb 1, 2024 · 1 comment
Closed

Comments

@nielsonm236
Copy link
Owner

The HTML "pattern" statement is not working correctly to filter out special characters in the Name field. If the title instructions are followed everything works properly, but if "not allowed" special characters are used the filter does not reject them, and URL encoded sequences are inserted for the special characters. I have a solution prepared and will release it with the next general release.

FYI, solutions suggested on Stack Overflow (principally making the hypen or dash character first or last in the custom character definition) do not seem to work ... not sure why, so:
pattern='[0-9a-zA-Z_.-]{1,15}' doesn't work
pattern='[0-9a-zA-Z_
.-]{1,15}' doesn't work
pattern='[-0-9a-zA-Z_.]{1,15}' doesn't work
pattern='[\w
.-]{1,15}' does work
I will fix it.

nielsonm236 added a commit that referenced this issue Jun 15, 2024
@nielsonm236
Copy link
Owner Author

Addressed in release 20240612 0226

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