diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2015-12-14 10:08:10 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2015-12-14 10:08:10 -0500 |
commit | 733f35ef02bea7948b459a8da20128f61102a876 (patch) | |
tree | 84523142c30baa8e7f692ddc841f2ebc3637d0f0 /web/react/components/user_settings/manage_outgoing_hooks.jsx | |
parent | f93922c14ff3c0d2c0b8f33e14e501a10d50a5f1 (diff) | |
parent | 26b6a2aadb68534339605b5bb06156318d8857c3 (diff) | |
download | chat-733f35ef02bea7948b459a8da20128f61102a876.tar.gz chat-733f35ef02bea7948b459a8da20128f61102a876.tar.bz2 chat-733f35ef02bea7948b459a8da20128f61102a876.zip |
Merge pull request #1690 from npcode/trim-outgoing-callback-url
Trim callback urls for outgoing webhooks
Diffstat (limited to 'web/react/components/user_settings/manage_outgoing_hooks.jsx')
-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 fdbac9831..ede639691 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, |