fix time call
This commit is contained in:
parent
b9d5f510c3
commit
9e9c40eabd
|
@ -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 New Issue