Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1167546
D523.id1343.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 23, 1:53 PM
Size
740 B
Mime Type
text/x-diff
Expires
Wed, Sep 24, 1:53 PM (21 h, 42 m)
Engine
blob
Format
Raw Data
Handle
756285
Attached To
D523: INP-1912 - Show "404 Page Not Found" page on the Front-End for unaccessible events
D523.id1343.diff
View Options
Index: core/kernel/managers/request_manager.php
===================================================================
--- core/kernel/managers/request_manager.php
+++ core/kernel/managers/request_manager.php
@@ -145,10 +145,15 @@
$this->Application->UnitConfigReader->runAfterConfigRead($regs[1]);
}
- if ( !$this->Application->eventImplemented($event) ) {
- $false = false;
+ try {
+ $this->Application->eventImplemented($event);
+ }
+ catch ( Exception $e ) {
+ if ( !$this->Application->isAdmin && !$this->Application->isDebugMode() ) {
+ $this->Application->UrlManager->show404();
+ }
- return $false;
+ throw $e;
}
$event->SetRedirectParam('opener', 's'); // stay on same page after event is called
Event Timeline
Log In to Comment