replace spaces in download link without encoding entire URL
This commit is contained in:
parent
dd32091016
commit
4ab7f58745
|
@ -218,6 +218,8 @@ class OC_App{
|
||||||
}else{
|
}else{
|
||||||
$appdata=OC_OCSClient::getApplication($app);
|
$appdata=OC_OCSClient::getApplication($app);
|
||||||
$download=OC_OCSClient::getApplicationDownload($app, 1);
|
$download=OC_OCSClient::getApplicationDownload($app, 1);
|
||||||
|
// Replace spaces in download link without encoding entire URL
|
||||||
|
$download['downloadlink'] = str_replace(' ', '%20', $download['downloadlink']);
|
||||||
if(isset($download['downloadlink']) and $download['downloadlink']!='') {
|
if(isset($download['downloadlink']) and $download['downloadlink']!='') {
|
||||||
$info = array('source'=>'http', 'href'=>$download['downloadlink'], 'appdata'=>$appdata);
|
$info = array('source'=>'http', 'href'=>$download['downloadlink'], 'appdata'=>$appdata);
|
||||||
$app=OC_Installer::installApp($info);
|
$app=OC_Installer::installApp($info);
|
||||||
|
|
Loading…
Reference in New Issue