[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 16:24:15 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: |
--------------------------+--------------------
Comment (by Otto42):
Private addresses being blocked is a problem for cases where WordPress is
used on internal networks, but just allowing it indiscriminately is
potentially a security problem.
One can get around this by using the 'http_request_reject_unsafe_urls'
filter, but perhaps a filter more specific to the private-IP range check
would be appropriate here, to allow people using it in this way to bypass
just that check.
@husdaman: A temporary workaround:
{{{
add_filter('http_request_reject_unsafe_urls','__return_false');
}}}
This disables the URL safety check entirely, so only use it in cases where
the site is not-publicly accessible (like your internal site).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24646#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list