- Issue created by @arti_parmar
- Issue was unassigned.
- Status changed to Needs review
about 2 years ago 12:30pm 21 June 2023 - last update
about 2 years ago 9 pass - Status changed to Postponed: needs info
almost 2 years ago 9:20am 5 September 2023 - 🇳🇴Norway gisle Norway
Most of this patch is outdated because of this update: 🐛 Getting error page after the latest ACL module security update. Fixed
We now use JSON. Is it still necessary to use the
allowed_classes
option? - Status changed to Needs work
almost 2 years ago 11:49am 5 September 2023 - 🇬🇧United Kingdom steven jones
@gisle we still use
serialize
/unserialize
in a few places, right?- https://git.drupalcode.org/project/content_access/-/blob/16475b64565a481...
- https://git.drupalcode.org/project/content_access/-/blob/16475b64565a481...
Essentially, if we're only ever intending to store scalar values and arrays in those places, we should indeed pass
, ['allowed_classes' => FALSE]
as per this patch.So yeah, I think we need this in 2.0.x.
Setting to needs work, as someone needs to provide an updated patch.
- Status changed to Needs review
almost 2 years ago 1:06pm 5 September 2023 - Open on Drupal.org →Core: 9.5.x + Environment: PHP 8.1 & MySQL 5.7last update
almost 2 years ago Waiting for branch to pass - 🇳🇴Norway gisle Norway
It is still used two places, in
content_access.module
. and in an update hook iscontent_access.install
.Readinng the manual page (PHP.net: unserialize), it looks like the second option should be
['allowed_classes' => FALSE]
if we're unserializing an array.I've rerolled the patch to reflect this. Please review.
- last update
almost 2 years ago Patch Failed to Apply - Status changed to Fixed
almost 2 years ago 2:37pm 6 September 2023 - 🇬🇧United Kingdom steven jones
Thanks @arti_parmar and @gisle this looks to have been committed here: https://git.drupalcode.org/project/content_access/-/commit/f052779116bc9...
albeit with the wrong commit message, no worries.This made it into 2.0.0 too!
Automatically closed - issue fixed for 2 weeks with no activity.