[wp-trac] [WordPress Trac] #15058: Validate option and transient name lengths
WordPress Trac
wp-trac at lists.automattic.com
Sat Jan 15 01:47:33 UTC 2011
#15058: Validate option and transient name lengths
--------------------------+-----------------------------
Reporter: chrisbliss18 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Validation | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-----------------------------
Changes (by nacin):
* milestone: Awaiting Review => Future Release
Comment:
Attached patch restricts set_transient() only.
The rest of them aren't necessary -- update_option( $length_65 ) will
cause the option name to be truncated, but MySQL (at least 5.5.8) will not
truncate the WHERE clause in get_option( $length_65 ).
But for transients, the additional timeout prefix will cause a transient
that's between 45 and 53 to lack any expiration. Luckily, because they can
expire, then this patch won't do much harm.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15058#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list