minor #19809 Update misleading comment about RFC4627 (teohhanhui)
This PR was merged into the 2.7 branch.
Discussion
----------
Update misleading comment about RFC4627
| Q | A
| ------------- | ---
| Branch? | 2.7
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | N/A
| License | MIT
| Doc PR | N/A
RFC 4627 does not dictate escaping of HTML special characters
Commits
-------
72b6c9e
Update misleading comment about RFC4627
This commit is contained in:
commit
13d0510126
@ -27,7 +27,7 @@ class JsonResponse extends Response
|
|||||||
protected $data;
|
protected $data;
|
||||||
protected $callback;
|
protected $callback;
|
||||||
|
|
||||||
// Encode <, >, ', &, and " for RFC4627-compliant JSON, which may also be embedded into HTML.
|
// Encode <, >, ', &, and " characters in the JSON, making it also safe to be embedded into HTML.
|
||||||
// 15 === JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT
|
// 15 === JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT
|
||||||
protected $encodingOptions = 15;
|
protected $encodingOptions = 15;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user