Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1068576
D523.id1346.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
Fri, Jul 18, 11:10 AM
Size
785 B
Mime Type
text/x-diff
Expires
Sat, Jul 19, 11:10 AM (4 h, 42 m)
Engine
blob
Format
Raw Data
Handle
691600
Attached To
D523: INP-1912 - Show "404 Page Not Found" page on the Front-End for unaccessible events
D523.id1346.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