33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2025-01-12 01:45:39 +00:00

protecting the form with a token

This commit is contained in:
Daniel Dimitrov 2012-06-29 16:37:05 +02:00
parent 44416aa1f8
commit 0bafa78bee

View File

@ -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)) {