8000 minor #19809 Update misleading comment about RFC4627 (teohhanhui) · symfony/symfony@13d0510 · GitHub
[go: up one dir, main page]

Skip to content

Commit 13d0510

Browse files
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
2 parents 8693611 + 72b6c9e commit 13d0510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/JsonResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class JsonResponse extends Response
2727
protected $data;
2828
protected $callback;
2929

30-
// Encode <, >, ', &, and " for RFC4627-compliant JSON, which may also be embedded into HTML.
30+
// Encode <, >, ', &, and " characters in the JSON, making it also safe to be embedded into HTML.
3131
// 15 === JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT
3232
protected $encodingOptions = 15;
3333

0 commit comments

Comments
 (0)
0