[wp-trac] [WordPress Trac] #43177: REST API allows empty comments containing only whitespace
WordPress Trac
noreply at wordpress.org
Wed Jan 31 03:16:22 UTC 2018
#43177: REST API allows empty comments containing only whitespace
--------------------------+------------------------------
Reporter: jaswrks | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: rest-api
--------------------------+------------------------------
Comment (by dd32):
FWIW, I think it makes sense to enforce `trim()`'ing the fields in both
XML-RPC and the REST API, plus in `wp_ajax_replyto_comment()` if any of
the values there aren't.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43177#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list