mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
fix time call
This commit is contained in:
parent
b9d5f510c3
commit
9e9c40eabd
1 changed files with 1 additions and 1 deletions
|
|
@ -409,7 +409,7 @@ class OC_Util {
|
|||
// check if the token is in the user session and if the timestamp is from the last hour.
|
||||
if(isset($_SESSION['requesttoken-'.$token])) {
|
||||
$timestamp=$_SESSION['requesttoken-'.$token];
|
||||
if($timestamp+$maxtime<time){
|
||||
if($timestamp+$maxtime<time()){
|
||||
//token exired. exiting
|
||||
exit;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue