Permalink
Browse files

Bug fixes.

  • Loading branch information...
1 parent 40b795b commit e5ff9cec36683851d5ba3be34e2d582241135d1e @mvied committed Apr 19, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/WordPressHTTPS.php
  2. +1 −1 lib/WordPressHTTPS/Module/Admin/Settings.php
View
@@ -105,7 +105,7 @@ public function init() {
$this->setSetting('ssl_host_diff', 0);
}
- if ( strpos($this->getHttpsUrl()->getPath(), $this->getHttpUrl()->getPath()) === true ) {
+ if ( strpos($this->getHttpsUrl()->getPath(), $this->getHttpUrl()->getPath()) === false ) {
$this->getHttpsUrl()->setPath( $this->getHttpsUrl()->getPath() . $this->getHttpUrl()->getPath() );
}
@@ -189,7 +189,7 @@ public function save() {
$_POST[$key] = get_option($key);
}
} else {
- $_POST[$key] = $this->getPlugin()->getHttpsUrl();
+ $_POST[$key] = $this->getPlugin()->getHttpsUrl()->toString();
}
} else {
$_POST[$key] = get_option($key);

0 comments on commit e5ff9ce

Please sign in to comment.