Skip to content
Snippets Groups Projects
Commit ae9fbad6 authored by root's avatar root Committed by agata
Browse files

Don't leak which blog has been logged into via get_bloginfo()

parent 687500bf
No related branches found
No related tags found
No related merge requests found
...@@ -188,7 +188,7 @@ class WP_Http { ...@@ -188,7 +188,7 @@ class WP_Http {
* @param string $user_agent WordPress user agent string. * @param string $user_agent WordPress user agent string.
* @param string $url The request URL. * @param string $url The request URL.
*/ */
'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ), $url ), 'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; http://wordpress.org' ),
/** /**
* Filters whether to pass URLs through wp_http_validate_url() in an HTTP request. * Filters whether to pass URLs through wp_http_validate_url() in an HTTP request.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment