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.

Comments

lenxu’s picture

I revised the line 119 in "rest_server.module"

// $value = htmlentities($value);

$value = htmlspecialchars($value);

gdd’s picture

Project: Services » REST Server
Version: 6.x-0.13 » 6.x-1.0

Moving to REST server's queue

robloach’s picture

Status: Active » Needs review
StatusFileSize
new637 bytes

This it?

Josh Benner’s picture

Status: Needs review » Reviewed & tested by the community

Fixes problem for me. Change makes sense. No other side effects encountered.

robloach’s picture

Version: 6.x-1.0 » 6.x-3.x-dev
Status: Reviewed & tested by the community » Postponed (maintainer needs more info)

http://drupal.org/cvs?commit=362496

This doesn't effect 6.x-2.x-dev or 6.x-3.x-dev, right? Thanks!

Chris Charlton’s picture

StatusFileSize
new439 bytes

This affects Drupal 5 as well on Line 114 of rest_server.module. Attached is a patch for D5.

christefano’s picture

Status: Postponed (maintainer needs more info) » Needs review