31
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-05-30 12:20:47 +00:00

Update uploads.php

Form token check changed
This commit is contained in:
dam-man 2017-01-13 11:43:36 +01:00 committed by GitHub
parent cb0958c171
commit 10450d74dd

View File

@ -104,13 +104,9 @@ class JedcheckerControllerUploads extends JControllerlegacy
public function unzip()
{
$appl = JFactory::getApplication();
$token = JSession::getFormToken();
// Checking the form token
if (!$token || !$appl->input->get($token, null, 'alnum'))
{
jexit('Invalid Token');
}
// Form check token
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// If folder doesn't exist - create it!
if (!JFolder::exists($this->pathUnzipped))