mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Fix OC_OCS_Privatedata::privateDataGet
This commit is contained in:
parent
7a24f0cd8d
commit
0a9ca42c34
1 changed files with 5 additions and 2 deletions
|
|
@ -3,7 +3,10 @@
|
|||
class OC_OCS_Privatedata {
|
||||
|
||||
public static function privatedataGet($parameters){
|
||||
$user = OC_OCS::checkpassword();
|
||||
// TODO check user auth
|
||||
$user = OC_User::getUser();
|
||||
$app = addslashes(strip_tags($parameters['app']));
|
||||
$key = addslashes(strip_tags($parameters['key']));
|
||||
$result = OC_OCS::getData($user,$app,$key);
|
||||
$xml= array();
|
||||
foreach($result as $i=>$log) {
|
||||
|
|
@ -34,4 +37,4 @@ class OC_OCS_Privatedata {
|
|||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue