remove leading and trailing white space from settings

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Björn Schiessle 2018-11-14 13:23:21 +01:00
parent bf4de7be29
commit bca6a01229
No known key found for this signature in database
GPG key ID: 2378A753E2BF04F6

View file

@ -111,7 +111,7 @@
configIdentifier = '';
}
OC.msg.startSaving('#user-saml-save-indicator');
OCP.AppConfig.setValue('user_saml', configIdentifier + category + '-' + setting, value);
OCP.AppConfig.setValue('user_saml', configIdentifier + category + '-' + setting, value.trim());
OC.msg.finishedSaving('#user-saml-save-indicator', {status: 'success', data: {message: t('user_saml', 'Saved')}});
}
}