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

ContentPart names should be sanitized upon creation. Fixes #7770. #7771

Closed
wants to merge 1 commit into from

Conversation

Xceno
Copy link
Contributor

@Xceno Xceno commented Jul 11, 2017

Added the ToSafeName() sanitation already used in CreatePart, to CreatePartPOST.
This ensures that only valid technical names can be used.

@sebastienros
Copy link
Member

Shouldn't it be a validation message instead, if the ToSafeName result is different?

@BenedekFarkas
Copy link
Member

I'll decline this PR because I found that creating and editing both Parts and Types lack some validation against special characters and the change in this PR needs more work (I'll commit the fixes soon).

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.

5 participants