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:
parent
66c4e5fd1d
commit
cb0958c171
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user