Page MenuHomePhabricator

D16192.id38949.diff
No OneTemporary

D16192.id38949.diff

diff --git a/src/applications/phame/controller/PhameLiveController.php b/src/applications/phame/controller/PhameLiveController.php
--- a/src/applications/phame/controller/PhameLiveController.php
+++ b/src/applications/phame/controller/PhameLiveController.php
@@ -87,7 +87,7 @@
$this->isExternal = $is_external;
$this->isLive = $is_live;
- if ($post_id) {
+ if (strlen($post_id)) {
$post_query = id(new PhamePostQuery())
->setViewer($viewer)
->withIDs(array($post_id));
@@ -104,6 +104,8 @@
$post = $post_query->executeOne();
if (!$post) {
+ // Not a valid Post
+ $this->blog = $blog;
return new Aphront404Response();
}

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 16, 2:47 AM (2 d, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7389785
Default Alt Text
D16192.id38949.diff (710 B)

Event Timeline