Ticket #25007: 25007.typo-fix.diff
File 25007.typo-fix.diff, 1.4 KB (added by , 11 years ago) |
---|
-
src/wp-includes/class-http.php
752 752 $context = stream_context_create( array( 753 753 'ssl' => array( 754 754 'verify_peer' => $ssl_verify, 755 //'CN_match' => $arrURL['host'], // This is handled by self::verify_ssl_cert ficate()755 //'CN_match' => $arrURL['host'], // This is handled by self::verify_ssl_certificate() 756 756 'capture_peer_cert' => $ssl_verify, 757 757 'SNI_enabled' => true, 758 758 'cafile' => $r['sslcertificates'], … … 797 797 798 798 // Verify that the SSL certificate is valid for this request 799 799 if ( $secure_transport && $ssl_verify && ! $proxy->is_enabled() ) { 800 if ( ! self::verify_ssl_cert ficate( $handle, $arrURL['host'] ) )800 if ( ! self::verify_ssl_certificate( $handle, $arrURL['host'] ) ) 801 801 return new WP_Error( 'http_request_failed', __( 'The SSL Certificate for the host could not be verified.' ) ); 802 802 } 803 803 … … 959 959 * @param string $host The hostname being requested 960 960 * @return bool If the cerficiate presented in $stream is valid for $host 961 961 */ 962 static function verify_ssl_cert ficate( $stream, $host ) {962 static function verify_ssl_certificate( $stream, $host ) { 963 963 $context_options = stream_context_get_options( $stream ); 964 964 965 965 if ( empty( $context_options['ssl']['peer_certificate'] ) )