Skip to content

Commit 700e681

Browse files
committed
Merge branch 'ssrf-path-param' into ssrf-test-fix
2 parents 1a2da60 + a7f0862 commit 700e681

File tree

1 file changed

+2
-2
lines changed
  • core/src/main/kotlin/org/evomaster/core/search/gene/utils

1 file changed

+2
-2
lines changed

core/src/main/kotlin/org/evomaster/core/search/gene/utils/GeneUtils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,14 +918,14 @@ object GeneUtils {
918918

919919

920920
fun <K:Gene> getAllFields(params: List<Param>, klass: Class<K>) : List<Gene>{
921-
// TODO: PathParam get the StringGene but the wrapper CustomMutationRateGene
922-
// name isn't the same as StringGene. Name: d_
921+
923922
return params.flatMap { p ->
924923
if(p is HeaderParam || p is QueryParam || p is BodyParam || p is PathParam){
925924
// Note: PathParam was explicitly excluded, as not really representing possible fields.
926925
// Added to work with SSRF detection
927926
getAllFields(p.primaryGene(), klass)
928927
} else {
928+
// PathParam are explicitly excluded, as not really representing possible fields
929929
listOf()
930930
}
931931
}

0 commit comments

Comments
 (0)