[wp-trac] [WordPress Trac] #37992: fsockopen hard codes port 443 when http scheme used

WordPress Trac noreply at wordpress.org
Thu Sep 8 15:09:49 UTC 2016


#37992: fsockopen hard codes port 443 when http scheme used
--------------------------+-----------------------------
 Reporter:  amandato      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The Transport/fsockopen.php library hard codes port 443 when the scheme
 https is used. This does not allow for a custom port when using the https
 scheme. e.g. https://example.com:900/ would be converted to
 https://example.com:443/. Attached patch fixes this by checking if the
 port is not already specified.

 This patch can be applied separately but was discovered while creating the
 patch for ticket #37991
 [https://core.trac.wordpress.org/attachment/ticket/37991/]. Both tickets
 should be addressed together as they are related (this one impacts #37991
 and #37991 restores expected behavior for https scheme).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37992>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list