mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
use host name in redirect to prevent redirecting to arbitrary pages
This commit is contained in:
parent
3d5812c86d
commit
90baea95f0
|
@ -30,5 +30,5 @@ include("../inc/inc.Authentication.php");
|
|||
|
||||
$session->setLanguage($_GET['lang']);
|
||||
|
||||
header("Location: ".$_GET['referer']);
|
||||
header("Location: http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$_GET['referer']);
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user