Merged in bugfix/PMC-1235 (pull request #7120)
PMC-1235 Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
@@ -181,7 +181,7 @@ class Server implements iAuthenticate
|
||||
if (! isset($_SESSION['USER_LOGGED'])) {
|
||||
$http = \G::is_https() ? 'https' : 'http';
|
||||
$host = $http . '://' . $_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] != '80' ? ':' . $_SERVER['SERVER_PORT'] : '');
|
||||
$redirect = urlencode($host.'/'.self::$workspace.$_SERVER['REQUEST_URI']);
|
||||
$redirect = urlencode('/'.self::$workspace.$_SERVER['REQUEST_URI']);
|
||||
|
||||
$loginLink = sprintf('%s/sys%s/%s/%s/login/login?u=%s', $host, config("system.workspace"), SYS_LANG, SYS_SKIN, $redirect);
|
||||
header('location: ' . $loginLink);
|
||||
|
||||
Reference in New Issue
Block a user