summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold Daniels <arnold@jasny.net>2013-12-05 04:40:23 +0100
committerArnold Daniels <arnold@jasny.net>2013-12-05 04:40:23 +0100
commit611e702243b7fd7268255237eaa72214bf71a03d (patch)
tree15d7e9269284dfd7029716bb33563ee6f2db5d50
parent93a96184fcb2691caa1186d233ccd577dfdedbbf (diff)
downloadrouter-611e702243b7fd7268255237eaa72214bf71a03d.zip
router-611e702243b7fd7268255237eaa72214bf71a03d.tar.gz
router-611e702243b7fd7268255237eaa72214bf71a03d.tar.bz2
Fixed Controller::redirect()
-rw-r--r--src/Jasny/Controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Jasny/Controller.php b/src/Jasny/Controller.php
index 9cb89d4..f9dd0eb 100644
--- a/src/Jasny/Controller.php
+++ b/src/Jasny/Controller.php
@@ -50,7 +50,7 @@ abstract class Controller
// Turn relative URL into absolute URL
if (strpos($url, '://') === false) {
if ($url == '' || $url[0] != '/') $url = dirname($_SERVER['REQUEST_URI']) . '/' . $url;
- $url = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . $this->rebase($url);
+ $url = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . $url;
}
header("Location: $url", true, $http_code);