add log line before calling controller

that allows to redirect in the controller, with skipping the logging
This commit is contained in:
Uwe Steinmann 2018-08-17 14:40:10 +02:00
parent 5a112edfce
commit b99795da12

View File

@ -213,12 +213,12 @@ else if (isset($_GET["referuri"]) && strlen($_GET["referuri"])>0) {
$referuri = trim(urldecode($_GET["referuri"]));
}
add_log_line();
$controller->setParam('user', $user);
$controller->setParam('session', $session);
$controller->run();
add_log_line();
if (isset($referuri) && strlen($referuri)>0) {
// header("Location: http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'] . $referuri);
header("Location: " . $referuri);