]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix time call
authorFrank Karlitschek <frank@owncloud.org>
Wed, 13 Jun 2012 15:27:49 +0000 (17:27 +0200)
committerFrank Karlitschek <frank@owncloud.org>
Wed, 13 Jun 2012 15:27:49 +0000 (17:27 +0200)
lib/util.php

index d1d5983dcfba50002487443ecdd439cb7f292b82..e4efd953ec5aad4b8474efc6106db5c7f7c1ff77 100755 (executable)
@@ -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;