Page MenuHomeIn-Portal Phabricator

D462.id1262.diff
No OneTemporary

File Metadata

Created
Fri, Feb 7, 12:16 AM

D462.id1262.diff

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