Permalink
Browse files

xoops_redirectに.example.com/foo/barと入れられると、ログイン後に.example.comのサブサイトに富…

…んでしまいます。
  • Loading branch information...
ITOH Takashi
ITOH Takashi committed Jun 25, 2014
1 parent 7279587 commit 385ceb7807c6bb955e850730ec18849786b516da
Showing with 2 additions and 2 deletions.
  1. +2 −2 html/modules/legacy/kernel/Legacy_Controller.class.php
@@ -1033,9 +1033,9 @@ function checkLogin()
$url = isset($parsed['scheme']) ? $parsed['scheme'].'://' : 'http://';
if (isset($parsed['host'])) {
$url .= isset($parsed['port']) ? $parsed['host'] . ':' . $parsed['port'] . trim(xoops_getrequest('xoops_redirect')): $parsed['host'] . trim(xoops_getrequest('xoops_redirect'));
$url .= isset($parsed['port']) ? $parsed['host'] . ':' . $parsed['port'] . '/'.ltrim(trim(xoops_getrequest('xoops_redirect')), '/') : $parsed['host'] . '/'. ltrim(trim(xoops_getrequest('xoops_redirect')), '/');
} else {
$url .= xoops_getenv('HTTP_HOST') . trim(xoops_getrequest('xoops_redirect'));
$url .= xoops_getenv('HTTP_HOST') . '/'. ltrim(trim(xoops_getrequest('xoops_redirect')), '/');
}
}

0 comments on commit 385ceb7

Please sign in to comment.