diff options
author | Tim Roes <github@timroes.de> | 2011-11-27 01:22:40 +0100 |
---|---|---|
committer | Tim Roes <github@timroes.de> | 2011-11-27 01:22:40 +0100 |
commit | 5505dd9afd380c1676d9d0cef3e10d5be06ffee2 (patch) | |
tree | b5a769541f4d02fbb6bd47a25c5f9e15ec1e0ec3 | |
parent | c66c7229a0dfc4f9f06dadda98408679fa7a18d6 (diff) | |
download | rpg-5505dd9afd380c1676d9d0cef3e10d5be06ffee2.tar.gz rpg-5505dd9afd380c1676d9d0cef3e10d5be06ffee2.tar.bz2 |
Fixed XML-RPC getAttachment method.
Without creating an IXR_Base64 object, the file will be encoded as base64, but send as string. The client XML-RPC parser cannot detect that it is meant to be a base64 encoded file.
-rw-r--r-- | lib/exe/xmlrpc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/xmlrpc.php b/lib/exe/xmlrpc.php index e5e3298ae..3a05c886d 100644 --- a/lib/exe/xmlrpc.php +++ b/lib/exe/xmlrpc.php @@ -311,7 +311,7 @@ class dokuwiki_xmlrpc_server extends IXR_IntrospectionServer { return new IXR_Error(1, 'The requested file does not exist'); $data = io_readFile($file, false); - $base64 = base64_encode($data); + $base64 = new IXR_Base64($data); return $base64; } |