mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Merge pull request #1690 from npcode/trim-outgoing-callback-url
Trim callback urls for outgoing webhooks
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user