diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2017-12-03 13:51:21 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2017-12-03 13:52:28 +0100 |
commit | 4660892e5866f951860ed2aac6f69a7eed643599 (patch) | |
tree | 3a14b0727d5596908becff9531a509633ed65e90 /web/lib | |
parent | 0333d475fa60acebdc57a195ff9fb3fc0bd4771d (diff) | |
download | aur-4660892e5866f951860ed2aac6f69a7eed643599.tar.gz aur-4660892e5866f951860ed2aac6f69a7eed643599.tar.xz |
Allow setting an empty home page
Since commit 4efba18 (Only allow valid HTTP(s) URLs as home page,
2017-11-05), the home page field in the account settings must be a valid
URL. However, this new check prevents from leaving the field empty. Keep
the check in place but skip it if the home page field is left empty.
Fixes FS#56550.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/acctfuncs.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index b8d9dc54..df573755 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -162,7 +162,7 @@ function process_account_form($TYPE,$A,$U="",$T="",$S="",$E="",$H="",$P="",$C="" $error = __("The email address is invalid."); } - if (!$error && !valid_homepage($HP)) { + if (!$error && !empty($HP) && !valid_homepage($HP)) { $error = __("The home page is invalid, please specify the full HTTP(s) URL."); } |