mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-29 05:42:14 +02:00
Disable DynamicLinq to fix CVE (#1242)
* Disable DynamicLinq * Disable DynamicLinq functionality
This commit is contained in:
@@ -778,21 +778,21 @@ message HelloReply {
|
||||
);
|
||||
|
||||
// https://stackoverflow.com/questions/51985089/wiremock-request-matching-with-comparison-between-two-query-parameters
|
||||
server
|
||||
.Given(Request.Create().WithPath("/linq")
|
||||
.WithParam("from", new LinqMatcher("DateTime.Parse(it) > \"2018-03-01 00:00:00\"")))
|
||||
.RespondWith(Response.Create()
|
||||
.WithBody("linq match !!!")
|
||||
);
|
||||
//server
|
||||
// .Given(Request.Create().WithPath("/linq")
|
||||
// .WithParam("from", new LinqMatcher("DateTime.Parse(it) > \"2018-03-01 00:00:00\"")))
|
||||
// .RespondWith(Response.Create()
|
||||
// .WithBody("linq match !!!")
|
||||
// );
|
||||
|
||||
server
|
||||
.Given(Request.Create().WithPath("/linq2")
|
||||
.WithBody(new LinqMatcher("it.applicationId != null"))
|
||||
.UsingPost()
|
||||
)
|
||||
.RespondWith(Response.Create()
|
||||
.WithBody("linq2 match !!!")
|
||||
);
|
||||
//server
|
||||
// .Given(Request.Create().WithPath("/linq2")
|
||||
// .WithBody(new LinqMatcher("it.applicationId != null"))
|
||||
// .UsingPost()
|
||||
// )
|
||||
// .RespondWith(Response.Create()
|
||||
// .WithBody("linq2 match !!!")
|
||||
// );
|
||||
|
||||
server
|
||||
.Given(Request.Create().WithPath("/myendpoint").UsingAnyMethod())
|
||||
|
||||
Reference in New Issue
Block a user