-
Notifications
You must be signed in to change notification settings - Fork 824
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 Prevent backslash in CSS class name #10663
Conversation
I reckon we can treat this as a bugfix and target |
@michalkleiner :) the sooner the better |
:) i know i can use hidden_permissions |
Yup I agree. If you retarget this to 4.12 we can release as a bug fix. If I see this is still targeting 4 when I get to work in Monday I'll probably just merge as is and you'll have to wait for 4.13 |
Or create a new PR with the same code targeting 4.12. Can you rebase and retarget @lekoala? |
@michalkleiner here is the other pr #10667 |
since the default code is using get_called_class, you can end up with \ in the class name which is an escape character for css selectors this update convert for example even valCMS_ACCESS_SilverStripe\VersionedAdmin\ArchiveAdmin to even valCMS_ACCESS_SilverStripe-VersionedAdmin-ArchiveAdmin ArchiveAdmin class should probably implement private static $required_permission_codes = 'CMS_ACCESS_ArchiveAdmin '; also
Rebased for you |
Released in 4.12.3 |
since the default code is using get_called_class, you can end up with \ in the class name which is an escape character for css selectors this update convert for example
even valCMS_ACCESS_SilverStripe\VersionedAdmin\ArchiveAdmin to
even valCMS_ACCESS_SilverStripe-VersionedAdmin-ArchiveAdmin
ArchiveAdmin class should probably implement private static $required_permission_codes = 'CMS_ACCESS_ArchiveAdmin '; also