diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-24 13:22:08 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-24 13:22:08 +0000 |
| commit | 9b978b989e0dc418d43a12d95b4c6716108a7f50 (patch) | |
| tree | 70eacd20bd20e0ad5e5299d405bfb4e1f568d50d /roundcubemail/program/js/tiny_mce/plugins/spellchecker/rpc.php | |
| parent | 9c210683884d60b7503ab84e2147d01c536f9000 (diff) | |
- TinyMCE 3.3.7
git-svn-id: https://svn.roundcube.net/trunk@3783 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/tiny_mce/plugins/spellchecker/rpc.php')
| -rwxr-xr-x | roundcubemail/program/js/tiny_mce/plugins/spellchecker/rpc.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/roundcubemail/program/js/tiny_mce/plugins/spellchecker/rpc.php b/roundcubemail/program/js/tiny_mce/plugins/spellchecker/rpc.php index a0072ae9c..0024d3f75 100755 --- a/roundcubemail/program/js/tiny_mce/plugins/spellchecker/rpc.php +++ b/roundcubemail/program/js/tiny_mce/plugins/spellchecker/rpc.php @@ -51,6 +51,7 @@ if (!$raw) { if (!$raw)
die('{"result":null,"id":null,"error":{"errstr":"Could not get raw post data.","errfile":"","errline":null,"errcontext":"","level":"FATAL"}}');
+ // Passthrough request to remote server
if (isset($config['general.remote_rpc_url'])) {
$url = parse_url($config['general.remote_rpc_url']);
@@ -87,6 +88,7 @@ if (isset($config['general.remote_rpc_url'])) { die();
}
+console($raw); // Get JSON data
$json = new Moxiecode_JSON();
$input = $json->decode($raw);
@@ -105,6 +107,7 @@ $output = array( "error" => null
);
+console($json->encode($output)); // Return JSON encoded string
echo $json->encode($output);
|
