AIRAVATA-2169 Fix url encoding of projectID

Ran into this problem when I created a project with a name that included
'#' in it.


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/5d7a4f19
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/5d7a4f19
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/5d7a4f19

Branch: refs/heads/develop
Commit: 5d7a4f1992373820605d80c446dfac5432be3a2d
Parents: 782b203
Author: Marcus Christie <machr...@iu.edu>
Authored: Mon Oct 17 10:13:59 2016 -0400
Committer: Marcus Christie <machr...@iu.edu>
Committed: Mon Oct 17 10:13:59 2016 -0400

----------------------------------------------------------------------
 app/views/project/browse.blade.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/5d7a4f19/app/views/project/browse.blade.php
----------------------------------------------------------------------
diff --git a/app/views/project/browse.blade.php 
b/app/views/project/browse.blade.php
index 1c47b49..bacd5a7 100755
--- a/app/views/project/browse.blade.php
+++ b/app/views/project/browse.blade.php
@@ -108,7 +108,7 @@
                     <td>
                         {{$project->name}}
                         @if($can_write[$project->projectID])
-                        <a 
href="{{URL::to('/')}}/project/edit?projId={{$project->projectID}}" 
title="Edit">
+                        <a 
href="{{URL::to('/')}}/project/edit?projId={{rawurlencode($project->projectID)}}"
 title="Edit">
                             <span class="glyphicon glyphicon-pencil"></span>
                         </a>
                         @endif

Reply via email to