Page MenuHomePhabricator

D14450.id34945.diff
No OneTemporary

D14450.id34945.diff

diff --git a/src/applications/phurl/controller/PhabricatorPhurlShortURLDefaultController.php b/src/applications/phurl/controller/PhabricatorPhurlShortURLDefaultController.php
--- a/src/applications/phurl/controller/PhabricatorPhurlShortURLDefaultController.php
+++ b/src/applications/phurl/controller/PhabricatorPhurlShortURLDefaultController.php
@@ -8,6 +8,16 @@
}
public function handleRequest(AphrontRequest $request) {
- return new Aphront404Response();
+ $dialog = $this->newDialog()
+ ->setTitle(pht('Invalid URL'))
+ ->appendParagraph(
+ pht('This domain can only be used to open URLs'.
+ ' shortened using the Phurl application. The'.
+ ' URL you are trying to access does not have'.
+ ' a Phurl URL associated with it.'));
+
+ return id(new AphrontDialogResponse())
+ ->setDialog($dialog)
+ ->setHTTPResponseCode(404);
}
}

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 21, 3:44 PM (2 d, 21 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7729644
Default Alt Text
D14450.id34945.diff (908 B)

Event Timeline