MantisBT: master 47c512fc

Author Committer Branch Timestamp Parent
dregad dregad master 2015-12-08 05:03 master 9e9433a9
Affected Issues  0020350: json_url() may break non-ASCII strings.
Changeset

Revert "Problems if the json-message contains special characters [...]"

This reverts commit 7968aef0b2ea43456a66ee72f27e84cfc5999f99.

As per the JSON specification in RFC 7159 section 8.1, "JSON text
SHALL be encoded in UTF-8, UTF-16, or UTF-32". [1]

It is therefore incorrect to apply utf8_encode() function to the data
received from the server since it is already in Unicode by definition.

Fixes 0020350

[1] https://tools.ietf.org/html/rfc7159#section-8.1

Conflicts:
core/json_api.php
library/adodb
library/disposable
library/ezc/Base
library/ezc/Graph
library/phpmailer

mod - core/json_api.php Diff File