[wp-trac] [WordPress Trac] #40784: WP_HTTP_IXR_Client constructor needs to check that $server is valid
WordPress Trac
noreply at wordpress.org
Fri Aug 4 22:03:32 UTC 2017
#40784: WP_HTTP_IXR_Client constructor needs to check that $server is valid
--------------------------------------+------------------------------
Reporter: chrispecoraro | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version: 4.7.4
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Changes (by tfrommen):
* keywords: => has-patch has-unit-tests
Comment:
Interesting that this exists already. I was about to open a pretty similar
ticket.
In my opinion, the problem is not specifically that the URL might be
'''invalid'''. It could be a valid URL, given in an unexpected format
(e.g., protocol-less, or even relative).
I just created a small patch that fixes that, and also confirms that the
fix is working by new tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40784#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list