Skip to content

Commit

Permalink
fix trim misuse
Browse files Browse the repository at this point in the history
  • Loading branch information
GrosQuildu committed Dec 17, 2024
1 parent 34369b3 commit dd5a6ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/src/security/TrimMisuse/TrimMisuse.ql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

import go
import DataFlow2
import semmle.go.dataflow.DataFlow

/*
* Flows from a string to TrimFamilyCall cutSet argument
Expand All @@ -32,7 +32,7 @@ module Trim2ndArgFlow = DataFlow::Global<Trim2ndArgConfig>;
/*
* Calls to Trim methods that we are interested in
*/
class TrimFamilyCall extends CallNode {
class TrimFamilyCall extends DataFlow::CallNode {
TrimFamilyCall() {
this.getTarget().hasQualifiedName("strings", ["TrimRight", "TrimLeft", "Trim"])
or
Expand Down

0 comments on commit dd5a6ec

Please sign in to comment.