[wp-trac] Re: [WordPress Trac] #2875: https enclosures fail on

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 30 07:20:14 GMT 2006


#2875: https enclosures fail on post.
-----------------------+----------------------------------------------------
 Reporter:  nigelkane  |        Owner:  anonymous
     Type:  defect     |       Status:  new      
 Priority:  high       |    Milestone:           
Component:  General    |      Version:  2.0.2    
 Severity:  major      |   Resolution:           
 Keywords:             |  
-----------------------+----------------------------------------------------
Comment (by nigelkane):

 wp_html_headers() does not support ssl either.

 at the current line 1073 the 2 lines setting the port should be re-
 writting:

 {{{
         $scheme = "";
         if ( $parts['scheme'] == "https" )
                 $scheme = "ssl://";
         if ( !isset( $parts['port'] ) ) {
                 if($scheme) {
                         $parts['port'] = 443;
                 } else {
                         $parts['port'] = 80;
                 }
         }
 }}}

 You should not adjust the $host parameter as this is used in the HTML
 header commands and will break.

 You then should add the scheme into the fsockopen command:

 {{{
         $fp = @fsockopen($scheme.$host, $parts['port'], $err_num,
 $err_msg, 3);
 }}}

 Still working on why this particular section is not being called.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2875>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list