summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-07-30 21:13:29 +0200
committerBart Visscher <bartv@thisnet.nl>2012-07-30 21:19:03 +0200
commit0a9ca42c3479e1ebd0efee2bfae10958677bb657 (patch)
tree427b0f6cc8d28dfa4cac1b110b77b64693b9a59a
parent7a24f0cd8d28e60360127da19e40bff4b2e04168 (diff)
downloadnextcloud-server-0a9ca42c3479e1ebd0efee2bfae10958677bb657.tar.gz
nextcloud-server-0a9ca42c3479e1ebd0efee2bfae10958677bb657.zip
Fix OC_OCS_Privatedata::privateDataGet
-rw-r--r--lib/ocs/privatedata.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/ocs/privatedata.php b/lib/ocs/privatedata.php
index cb62d60a8d3..77214046911 100644
--- a/lib/ocs/privatedata.php
+++ b/lib/ocs/privatedata.php
@@ -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
+?>