Page MenuHomePhorge

D25176.1734722180.diff
No OneTemporary

D25176.1734722180.diff

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

Mime Type
text/plain
Expires
Fri, Dec 20, 19:16 (19 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1019184
Default Alt Text
D25176.1734722180.diff (738 B)

Event Timeline