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:
parent
44416aa1f8
commit
0bafa78bee
@ -28,6 +28,7 @@ class jedcheckerControllerUploads extends JController
|
|||||||
*/
|
*/
|
||||||
public function upload()
|
public function upload()
|
||||||
{
|
{
|
||||||
|
JRequest::checkToken() or die( 'Invalid Token' );
|
||||||
$appl = JFactory::getApplication();
|
$appl = JFactory::getApplication();
|
||||||
$file = JRequest::getVar('extension', '', 'files', 'array');
|
$file = JRequest::getVar('extension', '', 'files', 'array');
|
||||||
if ($file['tmp_name']) {
|
if ($file['tmp_name']) {
|
||||||
@ -71,6 +72,7 @@ class jedcheckerControllerUploads extends JController
|
|||||||
*/
|
*/
|
||||||
public function unzip()
|
public function unzip()
|
||||||
{
|
{
|
||||||
|
JRequest::checkToken() or die( 'Invalid Token' );
|
||||||
$appl = JFactory::getApplication();
|
$appl = JFactory::getApplication();
|
||||||
// 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…
Reference in New Issue
Block a user