diff options
author | Yi EungJun <eungjun.yi@navercorp.com> | 2015-12-11 17:31:07 +0900 |
---|---|---|
committer | Yi EungJun <eungjun.yi@navercorp.com> | 2015-12-12 03:35:21 +0900 |
commit | 26b6a2aadb68534339605b5bb06156318d8857c3 (patch) | |
tree | 30dada5dcd0940ec63208ee83b246f9ab99bff10 /web/react/components | |
parent | 49a459d696fc8fee0b508990fca571fb8d2f2654 (diff) | |
download | chat-26b6a2aadb68534339605b5bb06156318d8857c3.tar.gz chat-26b6a2aadb68534339605b5bb06156318d8857c3.tar.bz2 chat-26b6a2aadb68534339605b5bb06156318d8857c3.zip |
Trim callback urls for outgoing webhooks
Adding traling whitespace is common mistake.
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/user_settings/manage_outgoing_hooks.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
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, |