Adding CSRF to file manager
This commit is contained in:
@ -53,6 +53,7 @@ if($_SERVER['REQUEST_METHOD']==='POST'){
|
|||||||
}
|
}
|
||||||
if($ok){
|
if($ok){
|
||||||
$_SESSION['hosting_username']=$username;
|
$_SESSION['hosting_username']=$username;
|
||||||
|
$_SESSION['csrf_token']=sha1(uniqid());
|
||||||
session_write_close();
|
session_write_close();
|
||||||
header('Location: home.php');
|
header('Location: home.php');
|
||||||
exit;
|
exit;
|
||||||
|
Reference in New Issue
Block a user