summaryrefslogtreecommitdiffstats
path: root/web/react/components/user_settings/manage_outgoing_hooks.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2015-12-14 10:08:10 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2015-12-14 10:08:10 -0500
commit733f35ef02bea7948b459a8da20128f61102a876 (patch)
tree84523142c30baa8e7f692ddc841f2ebc3637d0f0 /web/react/components/user_settings/manage_outgoing_hooks.jsx
parentf93922c14ff3c0d2c0b8f33e14e501a10d50a5f1 (diff)
parent26b6a2aadb68534339605b5bb06156318d8857c3 (diff)
downloadchat-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.jsx2
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,