Commit 5eb45b6efc977c819cdd9153ab09180faef1d31a
Committed by
Diego Camarinha
1 parent
4cd09d9f
Exists in
colab
and in
4 other branches
Strip repository URL.
Signef-off-by: Diego Araújo <diegoamc90@gmail.com>
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/controllers/repositories_controller.rb
| @@ -116,6 +116,7 @@ private | @@ -116,6 +116,7 @@ private | ||
| 116 | 116 | ||
| 117 | # Never trust parameters from the scary internet, only allow the white list through. | 117 | # Never trust parameters from the scary internet, only allow the white list through. |
| 118 | def repository_params | 118 | def repository_params |
| 119 | + params[:repository][:address].strip! | ||
| 119 | params[:repository] | 120 | params[:repository] |
| 120 | end | 121 | end |
| 121 | 122 |