Don't sanitize project names on project members page

This commit is contained in:
Elias Werberich 2019-04-01 11:07:22 +02:00
parent afbc827465
commit 83fb62d493
No known key found for this signature in database
GPG key ID: F6DD3413A7F973DE
4 changed files with 8 additions and 3 deletions

View file

@ -1,6 +1,6 @@
.card.project-members-groups
.card-header
= _("Groups with access to <strong>%{project_name}</strong>").html_safe % { project_name: sanitize_project_name(@project.name) }
= _("Groups with access to <strong>%{project_name}</strong>").html_safe % { project_name: sanitize(@project.name, tags: []) }
%span.badge.badge-pill= group_links.size
%ul.content-list.members-list
= render partial: 'shared/members/group', collection: group_links, as: :group_link

View file

@ -4,7 +4,7 @@
.card
.card-header.flex-project-members-panel
%span.flex-project-title
= _("Members of <strong>%{project_name}</strong>").html_safe % { project_name: sanitize_project_name(project.name) }
= _("Members of <strong>%{project_name}</strong>").html_safe % { project_name: sanitize(project.name, tags: []) }
%span.badge.badge-pill= members.total_count
= form_tag project_project_members_path(project), method: :get, class: 'form-inline member-search-form flex-project-members-form' do
.form-group

View file

@ -6,7 +6,7 @@
= _("Project members")
- if can?(current_user, :admin_project_member, @project)
%p
= _("You can invite a new member to <strong>%{project_name}</strong> or invite another group.").html_safe % { project_name: sanitize_project_name(@project.name) }
= _("You can invite a new member to <strong>%{project_name}</strong> or invite another group.").html_safe % { project_name: sanitize(@project.name, tags: []) }
- else
%p
= _("Members can be added by project <i>Maintainers</i> or <i>Owners</i>").html_safe

View file

@ -0,0 +1,5 @@
---
title: "Fix unwanted character replacement on project members page caused by usage of sanitize function"
merge_request: 25946
author: Elias Werberich
type: fixed