various modifications to prevent xss
- validation of names and labels against /^[\w\s\'\-]*$/i - html entities encoding git-svn-id: http://redmine.rubyforge.org/svn/trunk@99 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -56,9 +56,9 @@ module IssuesHelper
|
||||
|
||||
unless no_html
|
||||
label = content_tag('strong', label)
|
||||
old_value = content_tag("i", old_value) if old_value
|
||||
old_value = content_tag("strike", old_value) if old_value and !value
|
||||
value = content_tag("i", value) if value
|
||||
old_value = content_tag("i", h(old_value)) if old_value
|
||||
old_value = content_tag("strike", h(old_value)) if old_value and !value
|
||||
value = content_tag("i", h(value)) if value
|
||||
end
|
||||
|
||||
if value
|
||||
|
||||
Reference in New Issue
Block a user