Skip to content

Commit a759905

Browse files
dellaliberaesbena
andauthored
Update javascript/ql/src/experimental/Security/CWE-117/LogInjection.qll
Co-authored-by: Esben Sparre Andreasen <[email protected]>
1 parent cc91026 commit a759905

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,8 @@ module LogInjection {
8888
*/
8989
class StringReplaceSanitizer extends Sanitizer {
9090
StringReplaceSanitizer() {
91-
exists(StringReplaceCall replace, string s |
92-
replace.replaces(s, "") and s.regexpMatch("\\n")
93-
|
94-
this = replace
91+
exists(string s |
92+
this.(StringReplaceCall).replaces(s, "") and s.regexpMatch("\\n")
9593
)
9694
}
9795
}

0 commit comments

Comments
 (0)