mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
fix XSS vunerability. Thanks Mesut Timur for spotting this!
This commit is contained in:
parent
13b5ac98df
commit
11edf64d43
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ class TodosController < ApplicationController
|
|||
# /todos/tag/[tag_name] shows all the actions tagged with tag_name
|
||||
def tag
|
||||
@source_view = params['_source_view'] || 'tag'
|
||||
@tag_name = params[:name]
|
||||
@tag_name = sanitize(params[:name])
|
||||
@page_title = "TRACKS::Tagged with \'#{@tag_name}\'"
|
||||
|
||||
# mobile tags are routed with :name ending on .m. So we need to chomp it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue