diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-02-28 00:27:51 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-28 00:27:51 -0600 |
commit | 413d671d9e9d8928c062dac4b993db12a618c590 (patch) | |
tree | 2d38120e7b40c630c2030a05c2d885c298de5d54 /settings/js/users/users.js | |
parent | 7fc3129f0cb80358c5b8f5c2b93f0aa446d1c317 (diff) | |
parent | 9790fe7f5d349df4f56c427cf3559d004067eae5 (diff) | |
download | nextcloud-server-413d671d9e9d8928c062dac4b993db12a618c590.tar.gz nextcloud-server-413d671d9e9d8928c062dac4b993db12a618c590.zip |
Merge pull request #3635 from individual-it/fix_quota_validation
better quota validation
Diffstat (limited to 'settings/js/users/users.js')
-rw-r--r-- | settings/js/users/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js index a6dcafcdac3..db9f6b6006b 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -554,7 +554,7 @@ var UserList = { if (quota === 'other') { return; } - if ((quota !== 'default' && quota !=="none") && (isNaN(parseInt(quota, 10)) || parseInt(quota, 10) < 0)) { + if ((quota !== 'default' && quota !=="none") && (!OC.Util.computerFileSize(quota))) { // the select component has added the bogus value, delete it again $select.find('option[selected]').remove(); OC.Notification.showTemporary(t('core', 'Invalid quota value "{val}"', {val: quota})); |