[wp-trac] [WordPress Trac] #24646: fetch_feed() returns WP_Error with "A valid URL was not provided"

WordPress Trac noreply at wordpress.org
Thu Jun 27 05:20:29 UTC 2013


#24646: fetch_feed() returns WP_Error with "A valid URL was not provided"
--------------------------+--------------------
 Reporter:  husdaman      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5.3
Component:  Feeds         |     Version:  3.5.2
 Severity:  major         |  Resolution:
 Keywords:                |
--------------------------+--------------------
Changes (by nacin):

 * keywords:  dev-feedback =>
 * milestone:  Awaiting Review => 3.5.3


Comment:

 It has nothing to do with the theme or, in this case, the URL. Rather, it
 has to do with the DNS resolution of that URL's host, specifically on your
 own server.

 husdaman, can you please run `var_dump( gethostbyname(
 'schools.hwdsb.on.ca' ), gethostbyname( ' ​datr-web.hwdsb.on.ca' ) )` from
 your server?

 It looks like we are going to have to improve the check in
 wp_http_validate_url() (added in 3.5.2) to do more than compare the same
 host. Any loosening of these restrictions, however, have security
 implications, so we need to be very careful and very well informed.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24646#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list