33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2025-01-22 21:28:24 +00:00

Update uploads.php

Updated code to com_installer standard
This commit is contained in:
dam-man 2017-01-13 11:27:07 +01:00 committed by GitHub
parent 66c4e5fd1d
commit cb0958c171

View File

@ -41,13 +41,9 @@ class JedcheckerControllerUploads extends JControllerlegacy
{
$appl = JFactory::getApplication();
$input = JFactory::getApplication()->input;
$token = JSession::getFormToken();
// Checking the form token
if (!$token || !$appl->input->get($token, null, 'alnum'))
{
jexit('Invalid Token');
}
// Check the sent token by the form
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Gets the uploaded file from the sent form
$file = $input->files->get('extension', null, 'raw');