[wp-trac] [WordPress Trac] #15058: Validate option and transient name lengths

WordPress Trac noreply at wordpress.org
Wed Oct 29 04:44:41 UTC 2014


#15058: Validate option and transient name lengths
--------------------------------+-----------------------------
 Reporter:  chrisjean           |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Future Release
Component:  Options, Meta APIs  |     Version:  3.1
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:
--------------------------------+-----------------------------

Comment (by voldemortensen):

 Replying to [comment:33 khromov]:
 > I think MikeHansenMes patch adds unneeded complexity.
 >
 > Imagine writing the Codex article for this, it'd sound pretty weird.
 Even truncating the names consistently would be a better way to tackle
 this issue.

 khromov... 11 months ago you agreed that this kind of patch would be
 great...

 comment:18
 > scott,
 >
 >  The md5 patch sounds pretty good.

 Additionally, how do you propose we truncate things consistently? How
 would a theme/plugin know that its transient was truncated, and to be
 checking for a different value than the value they tried to set? It
 wouldn't make sense to cache something with the original value just to
 point to another value. That's too expensive.

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


More information about the wp-trac mailing list