Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2680607
D25855.1734582589.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
300 B
Referenced Files
None
Subscribers
None
D25855.1734582589.diff
View Options
diff --git a/src/parser/PhutilJSON.php b/src/parser/PhutilJSON.php
--- a/src/parser/PhutilJSON.php
+++ b/src/parser/PhutilJSON.php
@@ -51,7 +51,7 @@
$object = (array)$object;
}
- if (empty($object)) {
+ if (empty($object) || !is_iterable($object)) {
return '{}';
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 04:29 (18 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015003
Default Alt Text
D25855.1734582589.diff (300 B)
Attached To
Mode
D25855: JSON rendering: Avoid exception iterating on non-iterable objects
Attached
Detach File
Event Timeline
Log In to Comment