From 26b6a2aadb68534339605b5bb06156318d8857c3 Mon Sep 17 00:00:00 2001 From: Yi EungJun Date: Fri, 11 Dec 2015 17:31:07 +0900 Subject: Trim callback urls for outgoing webhooks Adding traling whitespace is common mistake. --- web/react/components/user_settings/manage_outgoing_hooks.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/react') diff --git a/web/react/components/user_settings/manage_outgoing_hooks.jsx b/web/react/components/user_settings/manage_outgoing_hooks.jsx index 7b7cf7401..aea886f15 100644 --- a/web/react/components/user_settings/manage_outgoing_hooks.jsx +++ b/web/react/components/user_settings/manage_outgoing_hooks.jsx @@ -36,7 +36,7 @@ export default class ManageOutgoingHooks extends React.Component { if (this.state.triggerWords.length !== 0) { hook.trigger_words = this.state.triggerWords.trim().split(','); } - hook.callback_urls = this.state.callbackURLs.split('\n'); + hook.callback_urls = this.state.callbackURLs.split('\n').map((url) => url.trim()); Client.addOutgoingHook( hook, -- cgit v1.2.3-1-g7c22