mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2025-01-22 21:28:24 +00:00
Update uploads.php
Form token check changed
This commit is contained in:
parent
cb0958c171
commit
10450d74dd
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user