mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2025-01-23 05:38: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()
|
public function unzip()
|
||||||
{
|
{
|
||||||
$appl = JFactory::getApplication();
|
$appl = JFactory::getApplication();
|
||||||
$token = JSession::getFormToken();
|
|
||||||
|
// Form check token
|
||||||
// Checking the form token
|
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
|
||||||
if (!$token || !$appl->input->get($token, null, 'alnum'))
|
|
||||||
{
|
|
||||||
jexit('Invalid Token');
|
|
||||||
}
|
|
||||||
|
|
||||||
// If folder doesn't exist - create it!
|
// If folder doesn't exist - create it!
|
||||||
if (!JFolder::exists($this->pathUnzipped))
|
if (!JFolder::exists($this->pathUnzipped))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user