Update javascript/ql/src/experimental/Security/CWE-117/LogInjection.qll

Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
This commit is contained in:
Alessio Della Libera
2020-06-22 20:37:38 +02:00
committed by GitHub
parent cc91026873
commit a759905a5c

View File

@@ -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")
)
}
}