Skip to content

Commit

Permalink
Fixed issue #9481: RemoteControl function export_responses results is…
Browse files Browse the repository at this point in the history
… broken with JSON-RPC
  • Loading branch information
c-schmitz committed Jan 28, 2015
1 parent c143786 commit 734e5f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/libraries/BigData.php
Expand Up @@ -229,7 +229,9 @@ protected static function xmlrpc_echo_object($data)

protected static function xmlrpc_echo_stream($data)
{
echo '<string>'; // a Base64 tag would be more sensible here but it would break all current implementations
$data->render();
echo '</string>';
}

protected static function xmlrpc_echo_string($data)
Expand Down Expand Up @@ -270,12 +272,10 @@ public function render($type = null)

protected function echo_base64()
{
echo '<string>'; // a Base64 tag would be more sensible here but it would break all current implementations
$fileHandle = fopen($this->fileName, 'r');
stream_filter_append($fileHandle, 'convert.base64-encode', STREAM_FILTER_READ);
fpassthru($fileHandle);
fclose($fileHandle);
echo '</string>';
}
}

Expand Down

0 comments on commit 734e5f1

Please sign in to comment.