From 13630daa76180f23ea5f33a50ca36fce82335df6 Mon Sep 17 00:00:00 2001 From: Simon Asika Date: Mon, 27 Mar 2017 23:16:11 +0800 Subject: [PATCH] Moved token out --- plugins/installer/packageinstaller/tmpl/default.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/installer/packageinstaller/tmpl/default.php b/plugins/installer/packageinstaller/tmpl/default.php index da39540402897..95acb8a5ad3e3 100644 --- a/plugins/installer/packageinstaller/tmpl/default.php +++ b/plugins/installer/packageinstaller/tmpl/default.php @@ -50,6 +50,7 @@ var button = $('#select-file-button'); var url = 'index.php?option=com_installer&task=install.ajax_upload'; var returnUrl = $('#installer-return').val(); + var token = $('#installer-token').val(); if (returnUrl) { url += '&return=' + returnUrl; @@ -107,7 +108,7 @@ var data = new FormData; data.append('install_package', file); data.append('installtype', 'upload'); - data.append('{$token}', 1); + data.append(token, 1); JoomlaInstaller.showLoading(); @@ -217,4 +218,5 @@ +