Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/phurl/controller/PhabricatorPhurlShortURLDefaultController.php b/src/applications/phurl/controller/PhabricatorPhurlShortURLDefaultController.php
index 7d48f56e24..8934d4b628 100644
--- a/src/applications/phurl/controller/PhabricatorPhurlShortURLDefaultController.php
+++ b/src/applications/phurl/controller/PhabricatorPhurlShortURLDefaultController.php
@@ -1,13 +1,23 @@
<?php
final class PhabricatorPhurlShortURLDefaultController
extends PhabricatorPhurlController {
public function shouldRequireLogin() {
return false;
}
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/x-diff
Expires
Sat, Sep 20, 5:37 AM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
238945
Default Alt Text
(1 KB)

Event Timeline