mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2025-01-11 17:38:49 +00:00
protecting the form with a token
This commit is contained in:
parent
44416aa1f8
commit
0bafa78bee
@ -28,6 +28,7 @@ class jedcheckerControllerUploads extends JController
|
||||
*/
|
||||
public function upload()
|
||||
{
|
||||
JRequest::checkToken() or die( 'Invalid Token' );
|
||||
$appl = JFactory::getApplication();
|
||||
$file = JRequest::getVar('extension', '', 'files', 'array');
|
||||
if ($file['tmp_name']) {
|
||||
@ -71,6 +72,7 @@ class jedcheckerControllerUploads extends JController
|
||||
*/
|
||||
public function unzip()
|
||||
{
|
||||
JRequest::checkToken() or die( 'Invalid Token' );
|
||||
$appl = JFactory::getApplication();
|
||||
// if folder doesn't exist - create it!
|
||||
if(!JFolder::exists($this->pathUnzipped)) {
|
||||
|
Loading…
Reference in New Issue
Block a user