Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 8251cbcc6 -> 75028e9db


fixing file not download issue


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/75028e9d
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/75028e9d
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/75028e9d

Branch: refs/heads/develop
Commit: 75028e9dbec371ff1ba4873baf78cb206d967bea
Parents: 8251cbc
Author: scnakandala <[email protected]>
Authored: Tue Sep 27 14:11:27 2016 -0400
Committer: scnakandala <[email protected]>
Committed: Tue Sep 27 14:11:27 2016 -0400

----------------------------------------------------------------------
 app/routes.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/75028e9d/app/routes.php
----------------------------------------------------------------------
diff --git a/app/routes.php b/app/routes.php
index b2a8810..b1ad089 100755
--- a/app/routes.php
+++ b/app/routes.php
@@ -136,7 +136,7 @@ Route::get("download", function(){
 
         //TODO check permission
         $path = str_replace($dataRoot, "", parse_url($currentOutputPath, 
PHP_URL_PATH));
-        $downloadLink = URL::to('/') . 
Config::get('pga_config.airavata')['experiment-data-absolute-path'] . '/' . 
$path;
+        $downloadLink = parse_url(URL::to('/') . 
Config::get('pga_config.airavata')['experiment-data-absolute-path'] . '/' . 
$path, PHP_URL_PATH);
         return Response::download( $downloadLink);
     }
 });

Reply via email to