Skip to content

Commit

Permalink
Fixed whitelisting of URL
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Jul 1, 2020
1 parent f3c998a commit c54ce78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function validateActionTypeConfig(
}

try {
configurationUtilities.ensureWhitelistedUri(configObject.url);
configurationUtilities.ensureWhitelistedUri(url.hostname);
} catch (whitelistError) {
return i18n.translate('xpack.actions.builtin.webhook.webhookConfigurationError', {
defaultMessage: 'error configuring webhook action: {message}',
Expand Down

0 comments on commit c54ce78

Please sign in to comment.