Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15404450
D14450.id34931.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
796 B
Referenced Files
None
Subscribers
None
D14450.id34931.diff
View Options
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,12 @@
}
public function handleRequest(AphrontRequest $request) {
- return new Aphront404Response();
+ return $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.'));
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 19, 7:46 AM (3 d, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7711044
Default Alt Text
D14450.id34931.diff (796 B)
Attached To
Mode
D14450: Provide a more informative alternative to 404 on invalid shortened Phurl URL
Attached
Detach File
Event Timeline
Log In to Comment