aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/ocs/privatedata.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/ocs/privatedata.php')
-rw-r--r--lib/private/ocs/privatedata.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/ocs/privatedata.php b/lib/private/ocs/privatedata.php
index 0fa50ad0c67..249c17b3792 100644
--- a/lib/private/ocs/privatedata.php
+++ b/lib/private/ocs/privatedata.php
@@ -69,7 +69,7 @@ class OC_OCS_Privatedata {
$user = OC_User::getUser();
$app = addslashes(strip_tags($parameters['app']));
$key = addslashes(strip_tags($parameters['key']));
- $value = OC_OCS::readData('post', 'value', 'text');
+ $value = (string)$_POST['value'];
// update in DB
$query = \OCP\DB::prepare('UPDATE `*PREFIX*privatedata` SET `value` = ? WHERE `user` = ? AND `app` = ? AND `key` = ?');