Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046428
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
Sat, Jun 28, 4:03 PM
Size
740 B
Mime Type
text/x-diff
Expires
Sun, Jun 29, 4:03 PM (9 h, 22 m)
Engine
blob
Format
Raw Data
Handle
676487
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