Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2649893
D25830.1732498640.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
573 B
Referenced Files
None
Subscribers
None
D25830.1732498640.diff
View Options
diff --git a/src/applications/files/document/PhabricatorJupyterDocumentEngine.php b/src/applications/files/document/PhabricatorJupyterDocumentEngine.php
--- a/src/applications/files/document/PhabricatorJupyterDocumentEngine.php
+++ b/src/applications/files/document/PhabricatorJupyterDocumentEngine.php
@@ -323,7 +323,7 @@
}
$nbformat = idx($data, 'nbformat');
- if (!strlen($nbformat)) {
+ if (!phutil_nonempty_string($nbformat)) {
throw new Exception(
pht(
'This document is missing an "nbformat" field. Jupyter notebooks '.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 01:37 (9 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
993214
Default Alt Text
D25830.1732498640.diff (573 B)
Attached To
Mode
D25830: Fix PHP 8.1 "strlen(null)" exception rendering JSON file as Jupyter
Attached
Detach File
Event Timeline
Log In to Comment