[wp-trac] [WordPress Trac] #19774: Potential undefined array access in XML-RPC mw_newPost
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 8 03:51:15 UTC 2012
#19774: Potential undefined array access in XML-RPC mw_newPost
--------------------------+-----------------------------
Reporter: maxcutler | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: 3.3.1
Severity: trivial | Keywords: has-patch
--------------------------+-----------------------------
When attempting to determine the appropriate cap check, some of the logic
attempts to access members of the `content_struct` array that are not
required to be set, resulting in 'undefined index' error/notice.
Specifically, this can occur when 'post_type' is supplied but not
'post_status'.
An example XML-RPC request that triggers one of the two if statements is
in the `test_call.txt` attachment.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19774>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list