We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc91026 commit a759905Copy full SHA for a759905
javascript/ql/src/experimental/Security/CWE-117/LogInjection.qll
@@ -88,10 +88,8 @@ module LogInjection {
88
*/
89
class StringReplaceSanitizer extends Sanitizer {
90
StringReplaceSanitizer() {
91
- exists(StringReplaceCall replace, string s |
92
- replace.replaces(s, "") and s.regexpMatch("\\n")
93
- |
94
- this = replace
+ exists(string s |
+ this.(StringReplaceCall).replaces(s, "") and s.regexpMatch("\\n")
95
)
96
}
97
0 commit comments