Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#31317 closed defect (bug) (duplicate)

is_serializable doesn't check for data created with a custom serialize

Reported by: jamesgol's profile jamesgol Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0.5
Component: Options, Meta APIs Keywords: has-patch
Focuses: Cc:


If someone uses a custom serialize as in

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)

serialize-custom.diff (374 bytes) - added by jamesgol 9 years ago.

Download all attachments as: .zip

Change History (4)

#1 @Shelob9
9 years ago

  • Keywords has-patch added

#2 @sc0ttkclark
9 years ago

  • Version changed from trunk to 2.0.5

Would love to see this fixed too.

#3 @SergeyBiryukov
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #17375.

Note: See TracTickets for help on using tickets.