Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F776261
D462.id1262.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, Feb 7, 12:16 AM
Size
632 B
Mime Type
text/x-diff
Expires
Sat, Feb 8, 12:16 AM (6 m, 59 s)
Engine
blob
Format
Raw Data
Handle
558714
Attached To
D462: INP-1857 - Prevent recursion in the "\kUrlManager::show404" method
D462.id1262.diff
View Options
Index: branches/5.2.x/core/kernel/managers/url_manager.php
===================================================================
--- branches/5.2.x/core/kernel/managers/url_manager.php
+++ branches/5.2.x/core/kernel/managers/url_manager.php
@@ -464,6 +464,11 @@
$not_found = $this->Application->ConfigValue('ErrorTemplate');
$template = $not_found ? $not_found : 'error_notfound';
+ // Avoid recursion, when attempt is made to show 404 page while on the 404 page.
+ if ( $this->Application->GetVar('t') === $template ) {
+ return;
+ }
+
$this->Application->QuickRun($template);
$this->Application->Done();
exit;
Event Timeline
Log In to Comment