logout before output to not run into header already sent problems

remotes/origin/stable6
Bernhard Posselt 13 years ago
parent ed0c23a9cc
commit 0f38e6ec9c
  1. 3
      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);
}
/**

Loading…
Cancel
Save