Fixed bug that allows XSS with the codepen embed. (#1578)
This commit is contained in:
parent
b8117775e3
commit
6c571e8bcd
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class CodepenTag < LiquidTagBase
|
|||
validated_options = options.map { |o| valid_option(o) }.reject { |e| e == nil }
|
||||
raise StandardError, "Invalid Options" unless options.empty? || !validated_options.empty?
|
||||
|
||||
option = options.join("&")
|
||||
option = validated_options.join("&")
|
||||
|
||||
if option.blank?
|
||||
"default-tab=result"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue