[wp-trac] [WordPress Trac] #15058: Validate option and transient name lengths
WordPress Trac
noreply at wordpress.org
Wed Nov 20 20:26:55 UTC 2013
#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 needs-unit-tests |
----------------------------------------+-----------------------------
Comment (by sc0ttkclark):
I think for MD5, what we could do is check if chars are over 40, then
substr all characters after the 8th one, and md5 it, so it remains within
the 40 character limit. That way there's a nice blend of having the
ability to see the transients in the DB when debugging, you'd see
something like my_tests41c5e5a98711f4c6a8b52606c47f9f61 in place of
my_testsomgomgomgomgomgomgomgomgomgomgomgomg
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15058#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list