Skip to content

Commit

Permalink
replacing spi.utils isHostInDenyList with core.utils isHostInDenyList (
Browse files Browse the repository at this point in the history
…#904)

Signed-off-by: Dennis Toepker <[email protected]>
(cherry picked from commit fa4007c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Apr 30, 2024
1 parent c764f0c commit 0ba78a7
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 0ba78a7

Please sign in to comment.