Page MenuHomePhorge

D25810.1743967841.diff
No OneTemporary

D25810.1743967841.diff

diff --git a/src/future/http/status/HTTPFutureHTTPResponseStatus.php b/src/future/http/status/HTTPFutureHTTPResponseStatus.php
--- a/src/future/http/status/HTTPFutureHTTPResponseStatus.php
+++ b/src/future/http/status/HTTPFutureHTTPResponseStatus.php
@@ -13,7 +13,7 @@
// NOTE: Avoiding PhutilUTF8StringTruncator here because this isn't lazy
// and responses may be large.
- if (strlen($body) > 512) {
+ if ($body !== null && strlen($body) > 512) {
$excerpt = substr($body, 0, 512).'...';
} else {
$excerpt = $body;

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 6, 19:30 (14 h, 44 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1116199
Default Alt Text
D25810.1743967841.diff (554 B)

Event Timeline