Skip to content

Commit

Permalink
replacing spi.utils isHostInDenyList with core.utils isHostInDenyList
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Toepker <[email protected]>
  • Loading branch information
toepkerd-zz committed Apr 15, 2024
1 parent 89c58e9 commit 0704105
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fun validateUrl(urlString: String) {
}

fun validateUrlHost(urlString: String, hostDenyList: List<String>) {
require(!org.opensearch.notifications.spi.utils.isHostInDenylist(urlString, hostDenyList)) {
require(!isHostInDenylist(urlString, hostDenyList)) {
"Host of url is denied, based on plugin setting [notification.core.http.host_deny_list]"
}
}
Expand Down

0 comments on commit 0704105

Please sign in to comment.