From dbd333a0fb2f413ccf5ddebac5e99bcb9fb0bffa Mon Sep 17 00:00:00 2001 From: Will Piers Date: Fri, 11 Nov 2016 11:15:35 -0800 Subject: [PATCH] Add trim functionality to source form --- ui/src/sources/containers/SourceForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/sources/containers/SourceForm.js b/ui/src/sources/containers/SourceForm.js index 94ccce354..bb2d01cb3 100644 --- a/ui/src/sources/containers/SourceForm.js +++ b/ui/src/sources/containers/SourceForm.js @@ -39,7 +39,7 @@ export const SourceForm = React.createClass({ e.preventDefault(); const {router, params, addFlashMessage} = this.props; const newSource = Object.assign({}, this.state.source, { - url: this.sourceURL.value, + url: this.sourceURL.value.trim(), name: this.sourceName.value, username: this.sourceUsername.value, password: this.sourcePassword.value,