Permalink
Browse files

Fixed port 443 check in settings save.

  • Loading branch information...
1 parent 87fb6af commit f5b0b8cc86fb944f9f6c7dcb6d99c0fd6c7bd882 @mvied committed Feb 5, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/WordPressHTTPS/Module/Settings.php
@@ -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

0 comments on commit f5b0b8c

Please sign in to comment.