diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-04-26 13:56:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 13:56:01 +0200 |
commit | aa651fd629534e96432492c1a74e979b28222ce2 (patch) | |
tree | 63191b834673e30a9544ed589a2afba02ef54299 /apps/settings/lib | |
parent | e1a3000cbed2e0bfa29e53b8bbcb858604540da2 (diff) | |
parent | d80cc76ee7f3f1f347fc54cc300e5e38ba7d6e19 (diff) | |
download | nextcloud-server-aa651fd629534e96432492c1a74e979b28222ce2.tar.gz nextcloud-server-aa651fd629534e96432492c1a74e979b28222ce2.zip |
Merge pull request #26259 from nextcloud/feature/noid/validate-website-to-be-valid
Validate the website field input to be a valid URL
Diffstat (limited to 'apps/settings/lib')
-rw-r--r-- | apps/settings/lib/Controller/UsersController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/settings/lib/Controller/UsersController.php b/apps/settings/lib/Controller/UsersController.php index a568b350883..f4f364fe3e9 100644 --- a/apps/settings/lib/Controller/UsersController.php +++ b/apps/settings/lib/Controller/UsersController.php @@ -523,6 +523,9 @@ class UsersController extends Controller { if ($e->getMessage() === IAccountManager::PROPERTY_PHONE) { throw new \InvalidArgumentException($this->l10n->t('Unable to set invalid phone number')); } + if ($e->getMessage() === IAccountManager::PROPERTY_WEBSITE) { + throw new \InvalidArgumentException($this->l10n->t('Unable to set invalid website')); + } throw new \InvalidArgumentException($this->l10n->t('Some account data was invalid')); } } |