aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index d1d5983dcfb..e4efd953ec5 100755
--- a/lib/util.php
+++ b/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;