Skip to content

Commit 374b13e

Browse files
committed
Remove path sanitizer
1 parent 1287f1b commit 374b13e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

go/ql/lib/semmle/go/security/TaintedPathCustomizations.qll

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,6 @@ module TaintedPath {
110110
}
111111
}
112112

113-
/**
114-
* A read from the field `Path` of the type `net/url.URL`, which is sanitized.
115-
*/
116-
class UrlPathSanitizer extends Sanitizer {
117-
UrlPathSanitizer() {
118-
exists(DataFlow::Field fld |
119-
this = fld.getARead() and
120-
fld.hasQualifiedName("net/url", "URL", "Path")
121-
)
122-
}
123-
}
124-
125113
/**
126114
* A read from the field `Filename` of the type `mime/multipart.FileHeader`,
127115
* considered as a sanitizer for path traversal.

0 commit comments

Comments
 (0)