Opened 10 years ago
Closed 6 years ago
#36416 closed enhancement (fixed)
maybe_unserialize returns false if non trimmed string is passed but is_serialized returns true
| Reported by: | pbearne | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.5 |
| Component: | General | Version: | 2.0 |
| Severity: | normal | Keywords: | has-patch has-unit-tests 2nd-opinion |
| Cc: | Focuses: |
Description
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
Attachments (2)
Change History (10)
This ticket was mentioned in Slack in #core by noisysocks. View the logs.
6 years ago
#4
@
6 years ago
- Keywords 2nd-opinion added; dev-feedback removed
We chatted about this ticket in [today's Triage](https://wordpress.slack.com/archives/C02RQBWTW/p1583989966303400).
I went ahead and refreshed the current patch in 36416.diff.
Swapping dev-feedback to second-opinion per discussion so this can get attention + review.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
patch with unit tests