logout before output to not run into header already sent problems
This commit is contained in:
parent
ed0c23a9cc
commit
0f38e6ec9c
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue