Skip to content

Commit

Permalink
Moved token out
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Mar 27, 2017
1 parent 00294f2 commit 13630da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/installer/packageinstaller/tmpl/default.php
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -217,4 +218,5 @@
</div>

<input id="installer-return" name="return" type="hidden" value="<?php echo $return; ?>" />
<input id="installer-token" name="return" type="hidden" value="<?php echo $token; ?>" />
</div>

0 comments on commit 13630da

Please sign in to comment.