Skip to content
Snippets Groups Projects
Commit 0a9ca42c authored by Bart Visscher's avatar Bart Visscher
Browse files

Fix OC_OCS_Privatedata::privateDataGet

parent 7a24f0cd
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
}
?>
\ No newline at end of file
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment