Navigation Menu

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

Commit

Permalink
Read latest_note url from server data instead of passing url as param…
Browse files Browse the repository at this point in the history
…eter
  • Loading branch information
cdujeu committed May 21, 2018
1 parent 5b48fc5 commit 0168585
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -47,7 +47,7 @@ const UpdaterDashboard = React.createClass({
this.setState({packages:response.packages});
if(response.latest_note){
let latest = response.latest_note;
latest = pydio.Parameters.get('ajxpServerAccess')+"&get_action=display_upgrade_note&url=" + encodeURIComponent(latest);
latest = pydio.Parameters.get('ajxpServerAccess') + '&get_action=display_upgrade_note';
this.setState({src:latest});
}
}else{
Expand Down
4 changes: 3 additions & 1 deletion core/src/plugins/action.updater/UpdateController.php
Expand Up @@ -114,7 +114,9 @@ public function switchAction($action, $httpVars, $fileVars, \Pydio\Core\Model\Co

case "display_upgrade_note":

$url = $httpVars["url"];
//$url = $httpVars["url"];
$data = UpgradeManager::getUpgradePath($this->pluginConf["UPDATE_SITE"], "php", $this->pluginConf["UPDATE_CHANNEL"]);
$url = $data["latest_note"];
$context = UpgradeManager::getContext();
if ($context != null) {
$content = file_get_contents($url, null, $context);
Expand Down

0 comments on commit 0168585

Please sign in to comment.