Permalink
Browse files

Remove port when testing external resources over HTTPS.

  • Loading branch information...
1 parent b4da712 commit 885d2e8358cee68e7121ad5a89b9ef90b5ad9851 @mvied committed Mar 24, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/WordPressHTTPS.php
View
@@ -307,6 +307,7 @@ public function makeUrlHttps( $string ) {
if ( @in_array($updated->toString(), $this->getSetting('secure_external_urls')) == false && @in_array($updated->toString(), $this->getSetting('unsecure_external_urls')) == false ) {
$test = clone $updated;
$test->setScheme('https');
+ $test->setPort(null);
if ( $test->isValid() ) {
// Cache this URL as available over HTTPS for future reference
$this->addSecureExternalUrl($updated->toString());

0 comments on commit 885d2e8

Please sign in to comment.