[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
Fri Mar 13 21:12:17 UTC 2020


#36416: maybe_unserialize returns false if non trimmed string is passed but
is_serialized returns true
-------------------------------------------------+-------------------------
 Reporter:  pbearne                              |       Owner:
                                                 |  SergeyBiryukov
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.5
Component:  General                              |     Version:  2.0
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests 2nd-        |     Focuses:
  opinion                                        |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47454" 47454]:
 {{{
 #!CommitTicketReference repository="" revision="47454"
 General: Trim the input data in `maybe_unserialize()`, for consistency
 with `is_serialized()`.

 Props pbearne, mikeschroder.
 Fixes #36416.
 }}}

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


More information about the wp-trac mailing list