Opened 12 years ago
Closed 12 years ago
#31317 closed defect (bug) (duplicate)
is_serializable doesn't check for data created with a custom serialize
| Reported by: | jamesgol | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Options, Meta APIs | Version: | 2.0.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
If someone uses a custom serialize as in
http://php.net/manual/en/class.serializable.php
The serialized string will look like this
C:3:"obj":23:{s:15:"My private data";}
WordPress will happily serialize an object like this and store it in the options table, but on retrieve the raw string is returned. wp-includes/function.php:is_serialized() doesn't know about this type of string. Patch included to fix this
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Would love to see this fixed too.