We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cd1fd4 commit d11cb91Copy full SHA for d11cb91
ruby/ql/test/query-tests/experimental/cwe-176/unicode_normalization.rb
@@ -18,7 +18,7 @@ def unicodeNormalize
18
class UnicodeNormalizationHtMLSafeController < ActionController::Base
19
def unicodeNormalize
20
unicode_input = params[:unicode_input]
21
- unicode_html_safe = unicode_input.html_safe
+ unicode_html_safe = CGI.escapeHTML(unicode_input).html_safe
22
normalized_nfkc = unicode_html_safe.unicode_normalize(:nfkc) # $result=BAD
23
normalized_nfc = unicode_html_safe.unicode_normalize(:nfc) # $result=BAD
24
end
0 commit comments