Skip to content

Small StringHelper::toHandle improvements#15772

Closed
lexisother wants to merge 1 commit intocraftcms:5.xfrom
lexisother:tohandle-replacements
Closed

Small StringHelper::toHandle improvements#15772
lexisother wants to merge 1 commit intocraftcms:5.xfrom
lexisother:tohandle-replacements

Conversation

@lexisother
Copy link
Copy Markdown

Description

Now also replaces !, ,, / & \ as these are all invalid characters in handles.

@brandonkelly
Copy link
Copy Markdown
Member

Thanks for the PR! Fixed this for the next Craft 4 and 5 releases by excluding all non-alphanumeric/underscore characters (979e992).

@brandonkelly
Copy link
Copy Markdown
Member

Craft 4.12.4 and 5.4.5 are out with that fix. Thanks again!

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

Successfully merging this pull request may close these issues.

2 participants