[wp-trac] [WordPress Trac] #36416: maybe_unserialize returns false if non trimmed string is passed but is_serialized returns true

WordPress Trac noreply at wordpress.org
Tue Apr 5 00:35:27 UTC 2016


#36416: maybe_unserialize returns false if non trimmed string is passed but
is_serialized returns true
-------------------------+-----------------------------
 Reporter:  pbearne      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 In maybe_unserialize we use is_serialized to protect the call to
 unserialize but is_serialized  trim's the string so fails to protect
 unserialize call

 Added a trim and updated code formatting to fix

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36416>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list