mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
Update javascript/ql/src/experimental/Security/CWE-117/LogInjection.qll
Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
This commit is contained in:
committed by
GitHub
parent
cc91026873
commit
a759905a5c
@@ -88,10 +88,8 @@ module LogInjection {
|
||||
*/
|
||||
class StringReplaceSanitizer extends Sanitizer {
|
||||
StringReplaceSanitizer() {
|
||||
exists(StringReplaceCall replace, string s |
|
||||
replace.replaces(s, "") and s.regexpMatch("\\n")
|
||||
|
|
||||
this = replace
|
||||
exists(string s |
|
||||
this.(StringReplaceCall).replaces(s, "") and s.regexpMatch("\\n")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user