Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2689482
D25176.1734734721.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
738 B
Referenced Files
None
Subscribers
None
D25176.1734734721.diff
View Options
diff --git a/src/utils/utils.php b/src/utils/utils.php
--- a/src/utils/utils.php
+++ b/src/utils/utils.php
@@ -900,7 +900,7 @@
* NOTE: This function does not treat "\r" on its own as a newline because none
* of SVN, Git or Mercurial do on any OS.
*
- * @param string Block of text to be split into lines.
+ * @param string|PhutilSafeHTML $corpus Block of text to be split into lines.
* @param bool If true, retain line endings in result strings.
* @return list List of lines.
*
@@ -908,7 +908,7 @@
* @phutil-external-symbol function phutil_safe_html
*/
function phutil_split_lines($corpus, $retain_endings = true) {
- if (!strlen($corpus)) {
+ if (!phutil_nonempty_stringlike($corpus)) {
return array('');
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 22:45 (16 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1019184
Default Alt Text
D25176.1734734721.diff (738 B)
Attached To
Mode
D25176: Fix PHP 8.1 "strlen(null)" exception which blocks creating a project with an empty Description field
Attached
Detach File
Event Timeline
Log In to Comment