bad characters make the return XML broken

lenxu - April 15, 2009 - 10:51
Project:REST Server
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

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.

#1

lenxu - April 15, 2009 - 10:52

I revised the line 119 in "rest_server.module"

// $value = htmlentities($value);

$value = htmlspecialchars($value);

#2

heyrocker - April 15, 2009 - 14:20
Project:Services» REST Server
Version:6.x-0.13» 6.x-1.0

Moving to REST server's queue

#3

Rob Loach - April 15, 2009 - 14:52
Status:active» needs review

This it?

AttachmentSize
special.patch 637 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.