Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15345750
D9704.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
625 B
Referenced Files
None
Subscribers
None
D9704.diff
View Options
diff --git a/src/workingcopyidentity/ArcanistWorkingCopyIdentity.php b/src/workingcopyidentity/ArcanistWorkingCopyIdentity.php
--- a/src/workingcopyidentity/ArcanistWorkingCopyIdentity.php
+++ b/src/workingcopyidentity/ArcanistWorkingCopyIdentity.php
@@ -311,7 +311,8 @@
$local_path));
try {
- return phutil_json_decode($local_path);
+ $json = Filesystem::readFile($local_path);
+ return phutil_json_decode($json);
} catch (PhutilJSONParserException $ex) {
throw new PhutilProxyException(
pht("Failed to parse '%s' as JSON.", $local_path),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 11, 12:18 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7525207
Default Alt Text
D9704.diff (625 B)
Attached To
Mode
D9704: Pass the file contents instead of the file path to `phutil_json_decode`.
Attached
Detach File
Event Timeline
Log In to Comment