mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Ruby: Fix StringSubstitutionCall charpred
Some missing parens meant this class targeted way more things than intended.
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