[wp-trac] [WordPress Trac] #32257: Patch: add support for multi-line textarea sanitization

WordPress Trac noreply at wordpress.org
Tue May 5 15:03:02 UTC 2015


#32257: Patch: add support for multi-line textarea sanitization
-------------------------+-----------------------------
 Reporter:  ottok        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Security     |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 New function: sanitize_textarea_field

 Add new function that can be used to sanitize textarea inputs (or outputs)
 which unlike the regular sanitize_text_field does not strip line breaks.

 This kind of sanitization is demanded by users and WP should definately
 provide such basic functions in the name of security. Otherwise users will
 use other less thorough sanitization solutions, like only wp_kses(). See
 examples at
 https://wordpress.org/support/topic/sanitizing-a-text-field-form-but-keep-
 line-breaks

 Also removed trailing spaces from file.

 Development done at
 https://github.com/WordPress/WordPress/compare/master...ottok:feature-
 sanitize-textarea-field

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32257>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list