diff --git a/lib/util.php b/lib/util.php
index d1d5983dcfba50002487443ecdd439cb7f292b82..e4efd953ec5aad4b8474efc6106db5c7f7c1ff77 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;