summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/ajax/preview.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/ajax/preview.php b/core/ajax/preview.php
index edbd41d2db4..75dace71a43 100644
--- a/core/ajax/preview.php
+++ b/core/ajax/preview.php
@@ -6,6 +6,7 @@
* See the COPYING-README file.
*/
\OC_Util::checkLoggedIn();
+\OC::$server->getSession()->close();
$file = array_key_exists('file', $_GET) ? (string)$_GET['file'] : '';
$maxX = array_key_exists('x', $_GET) ? (int)$_GET['x'] : '36';