[wp-trac] [WordPress Trac] #16167: FORCE_ADMIN_SSL broken if site runs on port different from 80

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 9 15:49:45 UTC 2011


#16167: FORCE_ADMIN_SSL broken if site runs on port different from 80
--------------------------+-----------------------------
 Reporter:  yoush         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.0.4
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 I'm running a wordpress site (http://yoush.homelinux.org:8079/) hosted at
 my home server. Unfortunately mu ISP blocks incoming connections on port
 80, so I have to use non-standard port.

 With unmodified wordpress 3.0.4, I was unable to use FORCE_ADMIN_SSL,
 because it caused URLs starting with

 http://yoush.homelinux.org:8079/

 to be converted to

 https://yoush.homelinux.org:8079/

 Which is definitly broken since it is impossible to serve both http and
 https on the same port.

 To fix this, I propose removing ':port' from URL when converting http url
 to https.
 I've created a patch for this, that seems to work for me on my site.

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


More information about the wp-trac mailing list