mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: URL '/' ending up beeing redirected to '//'
This commit is contained in:
parent
011ea99f3f
commit
f0570c6ae8
@ -91,7 +91,7 @@ class ParameterConfirmationToken {
|
|||||||
unset($params['url']);
|
unset($params['url']);
|
||||||
|
|
||||||
// Join them all together into the original URL
|
// Join them all together into the original URL
|
||||||
$location = "$proto://" . $host . '/' . ltrim(BASE_URL, '/') . $url . ($params ? '?'.http_build_query($params) : '');
|
$location = "$proto://" . $host . (strlen(trim(BASE_URL, '/')) > 0 ? '/' . trim(BASE_URL, '/') : '' ) . (strlen(trim($url, '/')) > 0 ? '/' . trim($url, '/') : '' ) . ($params ? '?'.http_build_query($params) : '');
|
||||||
|
|
||||||
// And redirect
|
// And redirect
|
||||||
if (headers_sent()) {
|
if (headers_sent()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user