Package io.codemodder.codemods
Class SanitizeApacheMultipartFilenameCodemod
java.lang.Object
io.codemodder.javaparser.JavaParserChanger
io.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.MethodCallExpr>
io.codemodder.codemods.SanitizeApacheMultipartFilenameCodemod
- All Implemented Interfaces:
io.codemodder.CodeChanger
@Codemod(id="pixee:java/sanitize-apache-multipart-filename",
reviewGuidance=MERGE_WITHOUT_REVIEW)
public final class SanitizeApacheMultipartFilenameCodemod
extends io.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.MethodCallExpr>
Sanitizes multipart filename inputs from HTTP requests.
-
Field Summary
Fields inherited from class io.codemodder.SarifPluginJavaParserChanger
sarifFields inherited from class io.codemodder.javaparser.JavaParserChanger
reporter -
Constructor Summary
ConstructorsConstructorDescriptionSanitizeApacheMultipartFilenameCodemod(io.codemodder.RuleSarif semgrepSarif) -
Method Summary
Modifier and TypeMethodDescriptionList<io.codemodder.DependencyGAV>booleanonResultFound(io.codemodder.CodemodInvocationContext context, com.github.javaparser.ast.CompilationUnit cu, com.github.javaparser.ast.expr.MethodCallExpr methodCallExpr, com.contrastsecurity.sarif.Result result) Methods inherited from class io.codemodder.SarifPluginJavaParserChanger
visitMethods inherited from class io.codemodder.javaparser.JavaParserChanger
getDescription, getIndividualChangeDescription, getReferences, getSourceControlUrl, getSummary
-
Constructor Details
-
SanitizeApacheMultipartFilenameCodemod
@Inject public SanitizeApacheMultipartFilenameCodemod(@SemgrepScan(ruleId="sanitize-apache-multipart-filename") io.codemodder.RuleSarif semgrepSarif)
-
-
Method Details
-
dependenciesRequired
- Overrides:
dependenciesRequiredin classio.codemodder.javaparser.JavaParserChanger
-
onResultFound
public boolean onResultFound(io.codemodder.CodemodInvocationContext context, com.github.javaparser.ast.CompilationUnit cu, com.github.javaparser.ast.expr.MethodCallExpr methodCallExpr, com.contrastsecurity.sarif.Result result) - Specified by:
onResultFoundin classio.codemodder.SarifPluginJavaParserChanger<com.github.javaparser.ast.expr.MethodCallExpr>
-