mirror of
https://github.com/DanWin/hosting.git
synced 2025-08-12 00:49:19 +02:00
Adding CSRF to file manager
This commit is contained in:
parent
e537e06118
commit
bc4a8a4d7c
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ if($_SERVER['REQUEST_METHOD']==='POST'){
|
|||
}
|
||||
if($ok){
|
||||
$_SESSION['hosting_username']=$username;
|
||||
$_SESSION['csrf_token']=sha1(uniqid());
|
||||
session_write_close();
|
||||
header('Location: home.php');
|
||||
exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue