diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-09-08 11:18:55 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-09-08 11:18:55 +0100 |
commit | 9f31f95adad5500045ef35b57d133c633cd08524 (patch) | |
tree | f4575b19a9e14efd79e83aab95baabcdf1f4406b /app/views/projects/empty.html.haml | |
parent | e0da2c352325c1cb2ede88a73434ed7afc037481 (diff) | |
download | gitlab-ce-9f31f95adad5500045ef35b57d133c633cd08524.tar.gz |
Escape user-provided content in preserved HAML sections
Diffstat (limited to 'app/views/projects/empty.html.haml')
-rw-r--r-- | app/views/projects/empty.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml index e577d35d560..798f1c47da5 100644 --- a/app/views/projects/empty.html.haml +++ b/app/views/projects/empty.html.haml @@ -22,15 +22,15 @@ %h5 Git global setup %pre.light-well :preserve - git config --global user.name "#{git_user_name}" - git config --global user.email "#{git_user_email}" + git config --global user.name "#{h git_user_name}" + git config --global user.email "#{h git_user_email}" %fieldset %h5 Create a new repository %pre.light-well :preserve git clone #{ content_tag(:span, default_url_to_repo, class: 'clone')} - cd #{@project.path} + cd #{h @project.path} touch README.md git add README.md git commit -m "add README" |