Skip to content

Commit

Permalink
match behavior with sanitize
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Feb 13, 2023
1 parent b7c82a3 commit ae1f7ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions test/selma_sanitizer_elements_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ def test_should_encode_special_chars_in_attribute_values

PROTOCOLS.each do |name, data|
define_method :"test_should_not_allow_#{name}" do
next unless /long_UTF8_encoding_without_semicolons/.match?(name)

assert_equal(data[:relaxed], Selma::Rewriter.new(sanitizer: @sanitizer).rewrite(data[:html]))
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def nest_html_content(html_content, depth)
default: "",
restricted: "",
basic: "",
relaxed: "",
relaxed: "<img>",
},

protocol_based_js_injection_invalid_URL_char: {
Expand Down

0 comments on commit ae1f7ab

Please sign in to comment.