mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #1243 from cniedzwiedz/squash_test
Fixed XSS in markdown() method
This commit is contained in:
commit
ff65b3b601
7 changed files with 61 additions and 1 deletions
|
|
@ -35,4 +35,8 @@ FactoryGirl.define do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
factory :event_xss, parent: :event do
|
||||
abstract { '<div id="divInjectedElement"></div>' }
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -6,4 +6,8 @@ FactoryGirl.define do
|
|||
description { Faker::Lorem.paragraph }
|
||||
website_link { Faker::Internet.url }
|
||||
end
|
||||
|
||||
factory :lodging_xss, parent: :lodging do
|
||||
description { '<div id="divInjectedElement"></div>' }
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -45,4 +45,9 @@ FactoryGirl.define do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
factory :user_xss, parent: :user do
|
||||
biography '<div id="divInjectedElement"></div>'
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue