Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2697919
D25196.1734975312.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
598 B
Referenced Files
None
Subscribers
None
D25196.1734975312.diff
View Options
diff --git a/src/applications/phame/storage/PhamePost.php b/src/applications/phame/storage/PhamePost.php
--- a/src/applications/phame/storage/PhamePost.php
+++ b/src/applications/phame/storage/PhamePost.php
@@ -67,7 +67,8 @@
$blog = $this->getBlog();
$is_draft = $this->isDraft();
$is_archived = $this->isArchived();
- if (strlen($blog->getDomain()) && !$is_draft && !$is_archived) {
+ if (phutil_nonempty_string($blog->getDomain()) &&
+ !$is_draft && !$is_archived) {
return $this->getExternalLiveURI();
} else {
return $this->getInternalLiveURI();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 17:35 (18 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1027127
Default Alt Text
D25196.1734975312.diff (598 B)
Attached To
Mode
D25196: Fix PHP 8.1 "strlen(null)" exception which blocks creating a blog post
Attached
Detach File
Event Timeline
Log In to Comment