when make the node_get call to query a node with Chinese content, the return XML will be broken by the bad character. This bug exists in each function that returns response in XML format.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | rest_server.module.434240-6.D5.patch | 439 bytes | Chris Charlton |
| #3 | special.patch | 637 bytes | robloach |
Comments
Comment #1
lenxu commentedI revised the line 119 in "rest_server.module"
// $value = htmlentities($value);
$value = htmlspecialchars($value);
Comment #2
gddMoving to REST server's queue
Comment #3
robloachThis it?
Comment #4
Josh Benner commentedFixes problem for me. Change makes sense. No other side effects encountered.
Comment #5
robloachhttp://drupal.org/cvs?commit=362496
This doesn't effect 6.x-2.x-dev or 6.x-3.x-dev, right? Thanks!
Comment #6
Chris CharltonThis affects Drupal 5 as well on Line 114 of rest_server.module. Attached is a patch for D5.
Comment #7
christefano commented