diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-10-31 18:37:59 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-10-31 18:37:59 +0100 |
commit | 7a7f12a0c126522cb067de692af0950d46bf15fc (patch) | |
tree | 1364f5ec500ead1ac29adde4cc72e5174a7a29ed /core/templates/layout.base.php | |
parent | ac784baef689ca5c0f22c8acdce8e13f6d918101 (diff) | |
download | nextcloud-server-7a7f12a0c126522cb067de692af0950d46bf15fc.tar.gz nextcloud-server-7a7f12a0c126522cb067de692af0950d46bf15fc.zip |
Create only one CSRF token per session
Before, the CSRF token expired every hour. We had a script in place
which should refresh the token but this don't worked in every case.
(Laptop sleeping etc.)
With this commit, the token will only get once created for every
session so that the "Token expired" warning shouldn't appear.
Diffstat (limited to 'core/templates/layout.base.php')
-rw-r--r-- | core/templates/layout.base.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php index f78b6ff8bbd..d8f83058775 100644 --- a/core/templates/layout.base.php +++ b/core/templates/layout.base.php @@ -11,7 +11,6 @@ var oc_webroot = '<?php echo OC::$WEBROOT; ?>'; var oc_appswebroots = <?php echo $_['apps_paths'] ?>; var oc_requesttoken = '<?php echo $_['requesttoken']; ?>'; - var oc_requestlifespan = '<?php echo $_['requestlifespan']; ?>'; </script> <?php foreach ($_['jsfiles'] as $jsfile): ?> <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> |