mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-24 09:46:11 +01:00
Fix reflected XSS vulnerabilities in some views
This commit is contained in:
parent
c23ca0574e
commit
b0d288d2ef
2 changed files with 10 additions and 8 deletions
|
|
@ -863,8 +863,10 @@ class TodosController < ApplicationController
|
|||
end
|
||||
|
||||
@single_tag = @tag_expr.size == 1 && @tag_expr[0].size == 1
|
||||
@tag_name = @tag_expr[0][0]
|
||||
@tag_title = @single_tag ? @tag_name : tag_title(@tag_expr)
|
||||
|
||||
# These are used in the templates, sanitise to prevent XSS.
|
||||
@tag_name = sanitize(@tag_expr[0][0])
|
||||
@tag_title = sanitize(@single_tag ? @tag_name : tag_title(@tag_expr))
|
||||
end
|
||||
|
||||
def filter_format_for_tag_view
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue