Skip to content

Commit

Permalink
Fixed port 443 check in settings save.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Ems committed Feb 5, 2013
1 parent 87fb6af commit f5b0b8c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/WordPressHTTPS/Module/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ public function save() {
$ssl_host = WordPressHTTPS_Url::fromString($_POST[$key]);

// Add Port
$port = ((isset($_POST['ssl_port']) && is_int($_POST['ssl_port']) ) ? $_POST['ssl_port'] : $ssl_host->getPort());
$port = ($port != 443 ? $port : null);
$_POST['ssl_port'] = $port = ((isset($_POST['ssl_port']) && is_int($_POST['ssl_port']) && $_POST['ssl_port'] != 443) ? $_POST['ssl_port'] : $ssl_host->getPort());
$ssl_host->setPort($port);

// Add Path
Expand Down

0 comments on commit f5b0b8c

Please sign in to comment.