Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1098200
D523.id.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
Wed, Aug 13, 11:32 AM
Size
785 B
Mime Type
text/x-diff
Expires
Thu, Aug 14, 11:32 AM (18 h, 32 m)
Engine
blob
Format
Raw Data
Handle
711142
Attached To
D523: INP-1912 - Show "404 Page Not Found" page on the Front-End for unaccessible events
D523.id.diff
View Options
Index: branches/5.2.x/core/kernel/managers/request_manager.php
===================================================================
--- branches/5.2.x/core/kernel/managers/request_manager.php
+++ branches/5.2.x/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