Page MenuHomeIn-Portal Phabricator

D102.diff
No OneTemporary

File Metadata

Created
Tue, May 20, 12:58 PM

D102.diff

Index: branches/5.2.x/core/kernel/utility/http_query.php
===================================================================
--- branches/5.2.x/core/kernel/utility/http_query.php
+++ branches/5.2.x/core/kernel/utility/http_query.php
@@ -380,6 +380,13 @@
$this->Application->VerifyThemeId();
$this->Application->VerifyLanguageId();
}
+
+ $virtual_template = $this->Application->getVirtualPageTemplate($this->Get('m_cat_id'));
+
+ if ( ($virtual_template !== false) && preg_match('/external:(.*)/', $virtual_template) ) {
+ trigger_error('URL of page, that has "External URL" set was accessed: "<strong>' . $_SERVER['REQUEST_URI'] . '</strong>"', E_USER_NOTICE);
+ $this->Application->Redirect($virtual_template);
+ }
}
/**

Event Timeline