XSS Security Fix
There was a XSS vulnerability in the handling of categories. Now they are escaped.
This commit is contained in:
parent
6fd6be8fea
commit
5ff1b7f6da
2 changed files with 8 additions and 1 deletions
|
@ -74,6 +74,13 @@ module Chunk
|
|||
@content.delete_chunk(self)
|
||||
end
|
||||
|
||||
def html_escape(string)
|
||||
string.gsub( /&/, "&" ).
|
||||
gsub( /</, "<" ).
|
||||
gsub( />/, ">" ).
|
||||
gsub( /"/, """ )
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue