don't add session-id to external redirects, thx to Sephi

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2014-02-19 11:08:43 +01:00
parent 4f4689c4e9
commit d6fdf887ce
4 changed files with 29 additions and 25 deletions

View File

@@ -36,7 +36,7 @@
* - fixed bug #91
*/
function redirectTo($destination, $get_variables = null, $isRelative = false) {
function redirectTo($destination, $get_variables = null, $isRelative = true) {
global $s;
@@ -77,7 +77,11 @@ function redirectTo($destination, $get_variables = null, $isRelative = false) {
exit;
} elseif ($get_variables == null) {
$linker = new linker($destination, $s);
if ($isRelative) {
$linker = new linker($destination, $s);
} else {
$linker = new linker($destination);
}
header('Location: ' . $linker->getLink());
exit;
}