Skip to content

Commit

Permalink
Remove path sanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwstubbs committed Oct 15, 2024
1 parent 1287f1b commit 374b13e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions go/ql/lib/semmle/go/security/TaintedPathCustomizations.qll
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,6 @@ module TaintedPath {
}
}

/**
* A read from the field `Path` of the type `net/url.URL`, which is sanitized.
*/
class UrlPathSanitizer extends Sanitizer {
UrlPathSanitizer() {
exists(DataFlow::Field fld |
this = fld.getARead() and
fld.hasQualifiedName("net/url", "URL", "Path")
)
}
}

/**
* A read from the field `Filename` of the type `mime/multipart.FileHeader`,
* considered as a sanitizer for path traversal.
Expand Down

0 comments on commit 374b13e

Please sign in to comment.