summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-05-03 21:32:49 -0700
committerStan Hu <stanhu@gmail.com>2016-05-04 14:06:07 -0700
commit75523d1df91cc871847a00cad4e5e1d44278a647 (patch)
tree47479fc70996c167438f89795d3d7353c66782e4 /app/views
parent8be1118aa528dff6787fdab7fbde7261a012c418 (diff)
downloadgitlab-ce-75523d1df91cc871847a00cad4e5e1d44278a647.tar.gz
Sanitize repo paths in new project error message
Closes #17243
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/imports/new.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/imports/new.html.haml b/app/views/projects/imports/new.html.haml
index 6027fb23360..a8a8caf7280 100644
--- a/app/views/projects/imports/new.html.haml
+++ b/app/views/projects/imports/new.html.haml
@@ -10,7 +10,7 @@
.panel-body
%pre
:preserve
- #{@project.import_error.try(:strip)}
+ #{sanitize_repo_path(@project.import_error)}
= form_for @project, url: namespace_project_import_path(@project.namespace, @project), method: :post, html: { class: 'form-horizontal' } do |f|
= render "shared/import_form", f: f