mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Merge pull request #16377 from hmac/hmac-sanitization-fp
Ruby: Fix StringSubstitutionCall charpred
This commit is contained in:
@@ -268,3 +268,8 @@ def bad_path_sanitizer(p1, p2)
|
||||
p1.sub! "/../", "" # NOT OK
|
||||
p2.sub "/../", "" # NOT OK
|
||||
end
|
||||
|
||||
def each_line_sanitizer(p1)
|
||||
p1.each_line("\n") do |l| # OK - does no sanitization
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user