diff options
| author | Imre Farkas <ifarkas@gitlab.com> | 2018-06-18 15:29:27 +0200 |
|---|---|---|
| committer | Imre Farkas <ifarkas@gitlab.com> | 2018-06-19 12:16:07 +0200 |
| commit | 6207a2de89c68eaa8d284116a6e790feb55ee65e (patch) | |
| tree | cb39023ae65283e1d112aa3047f7b4cf7f63789f /app/views/projects/graphs | |
| parent | 4be23eeae376ede50905b741f88b089b1669b07f (diff) | |
| download | gitlab-ce-6207a2de89c68eaa8d284116a6e790feb55ee65e.tar.gz | |
HTML escape branch name in project graphs page
Diffstat (limited to 'app/views/projects/graphs')
| -rw-r--r-- | app/views/projects/graphs/charts.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/graphs/charts.html.haml b/app/views/projects/graphs/charts.html.haml index 983cb187c2f..3f1974d05f4 100644 --- a/app/views/projects/graphs/charts.html.haml +++ b/app/views/projects/graphs/charts.html.haml @@ -30,7 +30,7 @@ #{@commits_graph.start_date.strftime('%b %d')} - end_time = capture do #{@commits_graph.end_date.strftime('%b %d')} - = (_("Commit statistics for %{ref} %{start_time} - %{end_time}") % { ref: "<strong>#{@ref}</strong>", start_time: start_time, end_time: end_time }).html_safe + = (_("Commit statistics for %{ref} %{start_time} - %{end_time}") % { ref: "<strong>#{h @ref}</strong>", start_time: start_time, end_time: end_time }).html_safe .col-md-6 .tree-ref-container |
