Skip to content

Commit 330393b

Browse files
authored
Merge pull request #822 from chloerei/master
fix iframe xss
2 parents 746caf7 + 638280f commit 330393b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helpers/application_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module ApplicationHelper
2-
ALLOW_TAGS = %w(p br img h1 h2 h3 h4 h5 h6 blockquote pre code b i iframe
2+
ALLOW_TAGS = %w(p br img h1 h2 h3 h4 h5 h6 blockquote pre code b i
33
strong em table tr td tbody th strike del u a ul ol li span hr)
44
ALLOW_ATTRIBUTES = %w(href src class width height id title alt target rel data-floor frameborder allowfullscreen)
55
EMPTY_STRING = ''.freeze

0 commit comments

Comments
 (0)