Changeset 24481 for branches/3.5/wp-includes/class-http.php
- Timestamp:
- 06/21/2013 06:12:17 AM (12 years ago)
- Location:
- branches/3.5
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
wp-includes/class-http.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.5
-
branches/3.5/wp-includes/class-http.php
r23250 r24481 87 87 'redirection' => apply_filters( 'http_request_redirection_count', 5), 88 88 'httpversion' => apply_filters( 'http_request_version', '1.0'), 89 'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) ), 89 'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) ), 90 'reject_unsafe_urls' => apply_filters( 'http_request_reject_unsafe_urls', false ), 90 91 'blocking' => true, 91 92 'headers' => array(), … … 117 118 return $pre; 118 119 119 $arrURL = parse_url( $url ); 120 if ( $r['reject_unsafe_urls'] ) 121 $url = wp_http_validate_url( $url ); 122 $url = wp_kses_bad_protocol( $url, array( 'http', 'https', 'ssl' ) ); 123 124 $arrURL = @parse_url( $url ); 120 125 121 126 if ( empty( $url ) || empty( $arrURL['scheme'] ) ) … … 1089 1094 // bug #17490 with redirected POST requests, so handle redirections outside Curl. 1090 1095 curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, false ); 1096 if ( defined( 'CURLOPT_PROTOCOLS' ) ) // PHP 5.2.10 / cURL 7.19.4 1097 curl_setopt( $handle, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS ); 1091 1098 1092 1099 switch ( $r['method'] ) {
Note: See TracChangeset
for help on using the changeset viewer.