diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-05-02 14:49:05 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-05-03 15:39:45 +0200 |
commit | 5db33b47c2868473b9ce0f6a31cb939ccc1c8c68 (patch) | |
tree | 50342646e444540bda9a89bfa87858537cf293ae /lib/api.php | |
parent | 6c2614351647b2d0c8c85ba500015849268108bc (diff) | |
download | nextcloud-server-5db33b47c2868473b9ce0f6a31cb939ccc1c8c68.tar.gz nextcloud-server-5db33b47c2868473b9ce0f6a31cb939ccc1c8c68.zip |
logout before output to not run into header already sent problems
Diffstat (limited to 'lib/api.php')
-rw-r--r-- | lib/api.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api.php b/lib/api.php index 8e4c3ef29b9..c74ffc1a557 100644 --- a/lib/api.php +++ b/lib/api.php @@ -112,8 +112,9 @@ class OC_API { $response = self::mergeResponses($responses); $formats = array('json', 'xml'); $format = !empty($_GET['format']) && in_array($_GET['format'], $formats) ? $_GET['format'] : 'xml'; - self::respond($response); OC_User::logout(); + + self::respond($response); } /** |