Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix PLUploader : new way to get secure_token
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 5, 2015
1 parent 4a49c55 commit f10c115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/uploader.plupload/pluploader_tpl.html
Expand Up @@ -61,7 +61,7 @@

var ftpUrl = '<?php echo ($ftpURL?$ftpURL:""); ?>';

var uploadUrl = '<?php print($_SERVER["SCRIPT_NAME"]); ?>?get_action=upload_chunks_unify_plupload&secure_token=<?php echo AuthService::getSecureToken();?>&ajxp_sessid=<?php echo session_id().$minisite_session; ?>';
var uploadUrl = '<?php print($_SERVER["SCRIPT_NAME"]); ?>?get_action=upload_chunks_unify_plupload&secure_token=<?php echo $httpVars["secure_token"];?>&ajxp_sessid=<?php echo session_id().$minisite_session; ?>';

var maxFileSize = '<?PHP echo ($UploadMaxSize/1048576) . "mb"; ?>';
var maxHTML4 = '<?PHP echo $UploadMaxSize; ?>';
Expand Down

0 comments on commit f10c115

Please sign in to comment.