summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMyles McNamara <myles@smyl.es>2014-02-28 11:15:49 -0500
committerMyles McNamara <myles@smyl.es>2014-02-28 11:15:49 -0500
commit4ab7f58745dd7583163f5f56804774c19b750b57 (patch)
tree38729f5c4ecf368e71376fe0a3b7e70d9f2d9146 /lib
parentdd32091016481b0b6845e03ea87ce419b3cda19e (diff)
downloadnextcloud-server-4ab7f58745dd7583163f5f56804774c19b750b57.tar.gz
nextcloud-server-4ab7f58745dd7583163f5f56804774c19b750b57.zip
replace spaces in download link without encoding entire URL
Diffstat (limited to 'lib')
-rw-r--r--lib/private/app.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index 048d4d4aeb1..cc3a0025283 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -218,6 +218,8 @@ class OC_App{
}else{
$appdata=OC_OCSClient::getApplication($app);
$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']!='') {
$info = array('source'=>'http', 'href'=>$download['downloadlink'], 'appdata'=>$appdata);
$app=OC_Installer::installApp($info);