[wp-trac] [WordPress Trac] #13350: update_metadata() updates unchanged values

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 18 22:16:23 UTC 2010


#13350: update_metadata() updates unchanged values
--------------------------+-------------------------------------------------
 Reporter:  ryan          |        Owner:          
     Type:  defect (bug)  |       Status:  reopened
 Priority:  high          |    Milestone:  3.0     
Component:  Optimization  |      Version:  3.0     
 Severity:  major         |   Resolution:          
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------
Changes (by shawnparker):

 * cc: shawnparker (added)


Comment:

 Sorry to be chatty, but I just thought about the strict check and its
 possibility to damage any data that is loosely delivered to
 update_postmeta. integer 1 passed in to the function vs. string 1 pulled
 from the text field in the database could cause issues... maybe some kind
 of md5 hash check is more in order here?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13350#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list