fix time call

remotes/origin/stable45
Frank Karlitschek 13 years ago
parent b9d5f510c3
commit 9e9c40eabd
  1. 2
      lib/util.php

@ -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…
Cancel
Save