diff --git a/other/files/svn-exposed.bcheck b/other/files/svn-exposed.bcheck index caddbe8..ac2ba98 100644 --- a/other/files/svn-exposed.bcheck +++ b/other/files/svn-exposed.bcheck @@ -9,19 +9,18 @@ run for each: potential_path = ".svn/entries", ".svn/text", ".svn/all-wcprops" given path then - # replace the potential path with the last path - # like if the path is `/v1/settings/public`. it will be convert to `/v1/settings/{potential_path}` - if not({base.request.url.path} is "/") then + if {base.request.url.path} is "/" then + # replace the potential path with entire URI send request called check: + method: "GET" + replacing path: `{regex_replace({base.request.url}, "^.*", "")}/{potential_path}` + else then + # replace the potential path with the last path + # like if the path is `/v1/settings/public`. it will be convert to `/v1/settings/{potential_path}` + send request called check1: method: "GET" replacing path: `{regex_replace({regex_replace({base.request.url}, "^.*?\/.*?\/.*?\/", "/")}, "([^/]+)$", "")}{potential_path}` - end if - - # replace the potential path with entire URI - send request called check1: - method: "GET" - replacing path: `{regex_replace({base.request.url}, "^.*", "")}/{potential_path}` if {latest.response.status_code} is "200" then if ("END" in {latest.response.body} and