Skip to content

Commit

Permalink
Update JsonView.php
Browse files Browse the repository at this point in the history
  • Loading branch information
conseilgouz committed Mar 14, 2024
1 parent 147f97d commit 6b4f4be
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/com_cgsecure/admin/src/View/Config/JsonView.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @component CG Secure
* Version : 3.0.13
* Version : 3.1.1
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
* @copyright (C) 2024 ConseilGouz. All Rights Reserved.
* @author ConseilGouz
Expand All @@ -11,14 +11,14 @@

defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Factory;
use Joomla\Filesystem\File;
use Joomla\Filesystem\Folder;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\AbstractView;
use Joomla\CMS\Response\JsonResponse;
use Joomla\CMS\Session\Session;
use Joomla\CMS\Table\Table;
use Joomla\Database\DatabaseInterface;
use Exception;
use Joomla\Filesystem\File;
use Joomla\Filesystem\Folder;

/**
* Config View
Expand All @@ -40,6 +40,7 @@ class JsonView extends AbstractView
*/
public function display($tpl = null)
{
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
// Check for errors.
$this->app = Factory::getApplication();
$input = Factory::getApplication()->input;
Expand Down

0 comments on commit 6b4f4be

Please sign in to comment.