[wp-trac] [WordPress Trac] #54331: Add a hook in wp_http_validate_url to control which ports are allowed for remote requests

WordPress Trac noreply at wordpress.org
Fri Oct 29 16:12:22 UTC 2021


#54331: Add a hook in wp_http_validate_url to control which ports are allowed for
remote requests
-------------------------------------------------+-------------------------
 Reporter:  xknown                               |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  5.9
Component:  HTTP API                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-unit-tests good-first-bug      |     Focuses:
  has-patch                                      |
-------------------------------------------------+-------------------------
Changes (by jorbin):

 * milestone:  Awaiting Review => 5.9


Comment:

 Did a first pass at the filter, would be good to get some additional eyes
 on the docblock and filter name. The `good-first-bug` still applies as
 someone will need to do the unit test. I think an appropriate test would
 be one that makes sure wp_http_validate_url allows a new port when the
 filter is used and doesn't allow it when it is not.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54331#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list