- Use \n as a word separator to workaround some strange Google spellchecker issue
| | |
| | | } |
| | | |
| | | $data = file_get_contents('php://input'); |
| | | // Google has some problem with spaces, use \n instead |
| | | $data = str_replace(' ', "\n", $data); |
| | | $store = ""; |
| | | |
| | | if ($fp = fsockopen($host, $port, $errno, $errstr, 30)) |
| | |
| | | $path = $a_uri['path'] . ($a_uri['query'] ? '?'.$a_uri['query'] : '') . $lang; |
| | | } |
| | | |
| | | $wordstr = implode(' ', (array) $data); |
| | | $wordstr = implode("\n", (array) $data); |
| | | $data = '<?xml version="1.0" encoding="utf-8" ?>' |
| | | .'<spellrequest textalreadyclipped="0" ignoredups="0" ignoredigits="1" ignoreallcaps="1">' |
| | | .'<text>' . $wordstr . '</text>' |