Permalink
Browse files

Removed dies. Oof.

  • Loading branch information...
1 parent bde17a2 commit 7361e717bd43b1fdb646dff77128de620576df84 @mvied committed Apr 22, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/WordPressHTTPS.php
View
@@ -276,15 +276,15 @@ public function redirect( $scheme = 'https' ) {
if ( $url ) {
if ( $scheme == 'https' ) {
- if ( $this->getSetting('ssl_host_diff') && $this->getHttpUrl()->getPath() != '/' ) { die('t' . $url);
+ if ( $this->getSetting('ssl_host_diff') && $this->getHttpUrl()->getPath() != '/' ) {
$url->setPath(str_replace($this->getHttpUrl()->getPath(), $this->getHttpsUrl()->getPath(), $_SERVER['REQUEST_URI']));
}
$url->setPath(rtrim($this->getHttpsUrl()->getPath(), '/') . '/' . ltrim(str_replace($this->getHttpsUrl()->getPath(), '', $_SERVER['REQUEST_URI']), '/'));
} else if ($scheme == 'http' ) {
- if ( $this->getSetting('ssl_host_diff') && $this->getHttpsUrl()->getPath() != '/' ) { die('t' . $url);
+ if ( $this->getSetting('ssl_host_diff') && $this->getHttpsUrl()->getPath() != '/' ) {
$url->setPath(str_replace($this->getHttpsUrl()->getPath(), $this->getHttpUrl()->getPath(), $_SERVER['REQUEST_URI']));
}
- $url->setPath(rtrim($this->getHttpUrl()->getPath(), '/') . '/' . ltrim(str_replace($this->getHttpsUrl()->getPath(), '', $_SERVER['REQUEST_URI']), '/'));
+ $url->setPath(rtrim($this->getHttpUrl()->getPath(), '/') . '/' ltrim(str_replace($this->getHttpsUrl()->getPath(), '', $_SERVER['REQUEST_URI']), '/'));
}
// Redirect

0 comments on commit 7361e71

Please sign in to comment.