mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
redirect to url with absolute path
using a relative url won't work if the apache rewrites the url, e.g. /Login/<hash> will be rewritten to /seeddms/op/op.Login.php Redirecting to ../op/op.Login.php will result in a url /op/op.Login.php which does not exists
This commit is contained in:
parent
ad3a3b2c52
commit
18e46f0d95
|
@ -299,7 +299,7 @@ if (isset($referuri) && strlen($referuri)>0) {
|
|||
header("Location: http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'] . $referuri);
|
||||
}
|
||||
else {
|
||||
header("Location: ../".(isset($settings->_siteDefaultPage) && strlen($settings->_siteDefaultPage)>0 ? $settings->_siteDefaultPage : "out/out.ViewFolder.php?folderid=".$settings->_rootFolderID));
|
||||
header("Location: ".$settings->_httpRoot.(isset($settings->_siteDefaultPage) && strlen($settings->_siteDefaultPage)>0 ? $settings->_siteDefaultPage : "out/out.ViewFolder.php?folderid=".$settings->_rootFolderID));
|
||||
}
|
||||
|
||||
//_printMessage(getMLText("login_ok"),
|
||||
|
|
Loading…
Reference in New Issue
Block a user