FIX Token redirect where in IIS a / needs adding between host & url

This commit is contained in:
Hamish Friedlander 2013-08-05 09:14:10 +12:00
parent 2f9689b8f8
commit 60a95cbe77

View File

@ -91,7 +91,7 @@ class ParameterConfirmationToken {
unset($params['url']);
// Join them all together into the original URL
$location = "$proto://" . $host . BASE_URL . $url . ($params ? '?'.http_build_query($params) : '');
$location = "$proto://" . $host . '/' . ltrim(BASE_URL, '/') . $url . ($params ? '?'.http_build_query($params) : '');
// And redirect
if (headers_sent()) {