[wp-trac] [WordPress Trac] #58903: set_transient() allows invalid transient name
WordPress Trac
noreply at wordpress.org
Thu Sep 28 04:26:50 UTC 2023
#58903: set_transient() allows invalid transient name
--------------------------------------------------+---------------------
Reporter: jeremyescott | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.4
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests 2nd-opinion | Focuses:
--------------------------------------------------+---------------------
Comment (by jeremyescott):
Should the patch be redesigned with this approach in mind, and the
transient name checks applied to set_, delete_, and get_ functions? I'm
happy to revise the patch with that goal in mind.
> I tend to agree with his idea. Rather than fix the issue in only one
place, instead put in a validation mechanism for all transient functions.
But doing so might shift this ticket to an enhancement rather than a
bugfix.
Both?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58903#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list