[wp-trac] [WordPress Trac] #58234: sanitize_title_with_dashes fatal error when query var value is an array

WordPress Trac noreply at wordpress.org
Tue May 2 13:38:14 UTC 2023


#58234: sanitize_title_with_dashes fatal error when query var value is an array
----------------------------+----------------------------------------
 Reporter:  mouhdev         |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Bootstrap/Load  |    Version:  6.2
 Severity:  normal          |   Keywords:  has-patch needs-unit-tests
  Focuses:                  |
----------------------------+----------------------------------------
 Using latest WordPress development version 6.3-alpha-55505-src, when
 submitting a form with field values that are array, and the array key is
 one of WordPress query vars, that causing sanitize error for 'post_name'
 parameter in get_posts function.

 Example to replicate:
 - make sure to register custom post type E.g custom_post_type.
 - submit the following form on your test WordPress website.
 {{{
 <form method="post" action="">
 <input type="text" name="custom_post_type['post_title']" value="This is a
 test post">
 <input type="submit" value="Send">
 </form>
 }}}

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


More information about the wp-trac mailing list