diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-02-17 23:25:31 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-08-14 13:42:56 +0200 |
commit | a7e4785be97dc305c0593332a7222db2c9b01e35 (patch) | |
tree | 52574f32e8b63e8c7ba6fbbc12477acadc77414b /lib/private/ocs | |
parent | ddc7f668e59223d95cb42e4f0281d5dab5888d79 (diff) | |
download | nextcloud-server-a7e4785be97dc305c0593332a7222db2c9b01e35.tar.gz nextcloud-server-a7e4785be97dc305c0593332a7222db2c9b01e35.zip |
Cleanup OCS code
This removes unused code from `OC_OCS` which nobody understood what it really was for anyways.
Diffstat (limited to 'lib/private/ocs')
-rw-r--r-- | lib/private/ocs/privatedata.php | 2 |
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` = ?'); |