Advanced Permissions Broken by Apostrophe in Page Type Names

Permalink
If you have clients/users creating Page Types while using Advanced Permissions this may impact you.

“Page Type” Names need validation ASAP – apostrophes break the javascript that manually adds users / groups to the
advanced permissions for any given page. This bug basically bonks the advanced permissions system when in effect – it is not possible to add groups or users to the permissions table for any page.

Steps to Reproduce:

Enable Advanced Permissions
Include an apostrophe in a page type name ( ex: Mayor’s Office )
Load the “Set Permissions” dialog box for ANY page
Choose to set permissions “Manually”
Click the “Add User/Group” button
Click a user / group in the listing

At this point you should get a series of two alerts. If you clicked a group the first alert will just display the numerical gID of the group ( ex: 4 ). The second alert will display the name of the group or user.

No permissions are added to the permissions table for the page you attempted to add a user / group to.

I have verified this on a clean install v5.4.1.1.

Using a “ in a page type name does not break advanced permissions but when editing the page type only the characters preceding the “ will appear in the form entry field.

I tried a few special characters and they didn’t cause any issues.