Make WordPress Core

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)

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

Download all attachments as: .zip

Change History (4)

#1 @Shelob9
12 years ago

  • Keywords has-patch added

#2 @sc0ttkclark
12 years ago

  • Version trunk2.0.5

Would love to see this fixed too.

#3 @SergeyBiryukov
12 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

Duplicate of #17375.

Note: See TracTickets for help on using tickets.