summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-08-27 17:51:02 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-08-27 17:51:02 +0200
commit2e796b563fc534802e9278a969761c1ef9fde86e (patch)
tree088e174e847fef6656a2eb0e2bfbf909d9d552ad /lib
parente3ac15bad34697d1d2f797a4d6341e5ad6db3464 (diff)
downloadnextcloud-server-2e796b563fc534802e9278a969761c1ef9fde86e.tar.gz
nextcloud-server-2e796b563fc534802e9278a969761c1ef9fde86e.zip
urldecode private- and public-key
Diffstat (limited to 'lib')
-rw-r--r--lib/ocs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ocs.php b/lib/ocs.php
index 423e1752da6..1b9207feaac 100644
--- a/lib/ocs.php
+++ b/lib/ocs.php
@@ -193,8 +193,8 @@ class OC_OCS {
//keysetuser
}elseif(($method=='post') and ($ex[$paracount-4] == 'v1.php') and ($ex[$paracount-3]=='cloud') and ($ex[$paracount-2] == 'userkeys')){
- $privatekey = self::readData('post', 'privatekey', 'string');
- $publickey = self::readData('post', 'publickey', 'string');
+ $privatekey = urldecode(self::readData('post', 'privatekey', 'string'));
+ $publickey = urldecode(self::readData('post', 'publickey', 'string'));
OC_OCS::userKeysSet($format, $privatekey, $publickey);
// keygetfiles