[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
Tue Nov 9 22:37:33 UTC 2021
#54331: Add a hook in wp_http_validate_url to control which ports are allowed for
remote requests
-------------------------------------------------+-------------------------
Reporter: xknown | Owner:
| hellofromTonya
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.9
Component: HTTP API | Version:
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch has-unit- | Focuses:
tests commit needs-dev-note |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"52084" 52084]:
{{{
#!CommitTicketReference repository="" revision="52084"
HTTP API: Introduce `'http_allowed_safe_ports'` filter in
`wp_http_validate_url()`.
Adds a new filter `'http_allowed_safe_ports'` to control which ports are
allowed for remote requests. By default, ports 80, 443, and 8080 are
allowed for safe remote requests.
Adds tests.
Follow-up to [24480].
Props xknown, johnbillion, jorbin, costdev, dd32.
Fixes #54331.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54331#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list