mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-01 23:08:49 +01:00
fix XSS vunerability. Thanks Mesut Timur for spotting this!
This commit is contained in:
parent
7bb4a01f20
commit
c94d1f58b2
1 changed files with 2 additions and 2 deletions
|
|
@ -517,7 +517,7 @@ class TodosController < ApplicationController
|
|||
def tag
|
||||
init_data_for_sidebar unless mobile?
|
||||
@source_view = params['_source_view'] || 'tag'
|
||||
@tag_name = params[:name]
|
||||
@tag_name = sanitize(params[:name]) # sanitize to prevent XSS vunerability!
|
||||
@page_title = t('todos.tagged_page_title', :tag_name => @tag_name)
|
||||
|
||||
# mobile tags are routed with :name ending on .m. So we need to chomp it
|
||||
|
|
@ -1334,4 +1334,4 @@ class TodosController < ApplicationController
|
|||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue