[svn r14322] Ensure redirection to index.php is made as a complete path to avoid unknown page when logging in from outside index.php

skala
Yannick Warnier 18 years ago
parent d492fcebbb
commit 5aea10eddd
  1. 8
      main/inc/local.inc.php

@ -250,7 +250,7 @@ else
{
$loginFailed = true;
api_session_unregister('_uid');
header('Location: index.php?loginFailed=1&error=account_expired');
header('Location: '.api_get_path(WEB_PATH).'index.php?loginFailed=1&error=account_expired');
exit;
}
}
@ -258,7 +258,7 @@ else
{
$loginFailed = true;
api_session_unregister('_uid');
header('Location: index.php?loginFailed=1&error=account_inactive');
header('Location: '.api_get_path(WEB_PATH).'index.php?loginFailed=1&error=account_inactive');
exit;
}
}
@ -266,7 +266,7 @@ else
{
$loginFailed = true;
api_session_unregister('_uid');
header('Location: index.php?loginFailed=1&error=user_password_incorrect');
header('Location: '.api_get_path(WEB_PATH).'index.php?loginFailed=1&error=user_password_incorrect');
exit;
}
@ -962,4 +962,4 @@ if(isset($_cid))
$tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);
$sql="UPDATE $tbl_course SET last_visit=NOW() WHERE code='$_cid'";
api_sql_query($sql,__FILE__,__LINE__);
}
}

Loading…
Cancel
Save