diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-03-04 16:33:41 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-03-04 16:33:41 +0100 |
commit | 620dd4afbddce865edc509e462799669a2dd3ed7 (patch) | |
tree | dbd822be79c0f4e969bc89a12efc42ffd141fec5 | |
parent | f42b6f1a4e625c63b72f602bf5f9fafdce68e4a4 (diff) | |
parent | 195bdff91fc55bf4d2c80ff7d978d74e6efac7a8 (diff) | |
download | nextcloud-server-620dd4afbddce865edc509e462799669a2dd3ed7.tar.gz nextcloud-server-620dd4afbddce865edc509e462799669a2dd3ed7.zip |
Merge pull request #7481 from tripflex/fix_downloadlink_spaces
replace spaces in download link without encoding entire URL
-rw-r--r-- | lib/private/app.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index 048d4d4aeb1..58bf67c1d47 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -219,6 +219,8 @@ class OC_App{ $appdata=OC_OCSClient::getApplication($app); $download=OC_OCSClient::getApplicationDownload($app, 1); if(isset($download['downloadlink']) and $download['downloadlink']!='') { + // Replace spaces in download link without encoding entire URL + $download['downloadlink'] = str_replace(' ', '%20', $download['downloadlink']); $info = array('source'=>'http', 'href'=>$download['downloadlink'], 'appdata'=>$appdata); $app=OC_Installer::installApp($info); } |