CoreFiles by mySites.guru
DisplayController.php45 lines, 1,278 bytes, from Joomla_4.2.1-rc2-Release_Candidate-Full_Package.zip
Raw History Compare with 4.2.1-rc1
md5
c4a9c00f01ee51dcd61b9b0f813aab1a
sha1
a1ef49eb1d4d91cf3d888ddf794e87f06417c245
sha256
b4f34f55c35a1b9b1dedde7799a1adf3159f3746d73c2d6a39e33be9d1dbb515
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_admin
 *
 * @copyright   (C) 2008 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Admin\Administrator\Controller;

use Joomla\CMS\MVC\Controller\BaseController;

/**
 * Admin Controller
 *
 * @since  1.6
 */
class DisplayController extends BaseController
{
    /**
     * View method
     *
     * @param   boolean  $cachable   If true, the view output will be cached
     * @param   array    $urlparams  An array of safe URL parameters and their variable types, for valid values see {@link \JFilterInput::clean()}.
     *
     * @return  static  Supports chaining.
     *
     * @since   3.9
     */
    public function display($cachable = false, $urlparams = array())
    {
        $viewName = $this->input->get('view', $this->default_view);
        $format   = $this->input->get('format', 'html');

        // Check CSRF token for sysinfo export views
        if ($viewName === 'sysinfo' && ($format === 'text' || $format === 'json')) {
            // Check for request forgeries.
            $this->checkToken('GET');
        }

        return parent::display($cachable, $urlparams);
    }
}

The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.