Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15385144
D16457.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
522 B
Referenced Files
None
Subscribers
None
D16457.id.diff
View Options
diff --git a/src/aphront/response/AphrontResponse.php b/src/aphront/response/AphrontResponse.php
--- a/src/aphront/response/AphrontResponse.php
+++ b/src/aphront/response/AphrontResponse.php
@@ -162,7 +162,7 @@
$object,
array(__CLASS__, 'processValueForJSONEncoding'));
- $response = json_encode($object);
+ $response = phutil_json_encode($object);
// Prevent content sniffing attacks by encoding "<" and ">", so browsers
// won't try to execute the document as HTML even if they ignore
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 15, 9:49 PM (6 d, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7702996
Default Alt Text
D16457.id.diff (522 B)
Attached To
Mode
D16457: Use phutil_json_encode() in AphrontResponse to raise better errors
Attached
Detach File
Event Timeline
Log In to Comment