Prevent xss attack over group name. Added regex validation for group and team name
This commit is contained in:
parent
cfdf94fc27
commit
020078663e
5 changed files with 22 additions and 6 deletions
|
@ -56,7 +56,7 @@ module ProjectsHelper
|
|||
def project_title project
|
||||
if project.group
|
||||
content_tag :span do
|
||||
link_to(project.group.name, group_path(project.group)) + " / " + project.name
|
||||
link_to(simple_sanitize(project.group.name), group_path(project.group)) + " / " + project.name
|
||||
end
|
||||
else
|
||||
project.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue