diff --git a/administrator/components/com_login/controller.php b/administrator/components/com_login/controller.php index 5cb1264f83df4..471853bd2bdfe 100644 --- a/administrator/components/com_login/controller.php +++ b/administrator/components/com_login/controller.php @@ -36,6 +36,12 @@ public function display($cachable = false, $urlparams = false) $this->input->set('view', 'login'); $this->input->set('layout', 'default'); + // For non-html formats we do not have login view, so just display 403 instead + if ($this->input->get('format', 'html') !== 'html') + { + throw new RuntimeException(JText::_('JERROR_ALERTNOAUTHOR'), 403); + } + parent::display(); }