diff options
author | Cash Costello <cash.costello@gmail.com> | 2013-03-20 21:00:41 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-03-20 21:00:41 -0400 |
commit | 4da579033674ecdb134bc921f3f0666072419e6c (patch) | |
tree | 1752448a3d08934e3981c91019e95d809a819356 /actions/profile | |
parent | b6544809afa82fb1da9e5f8a98dc4e2520bb35f0 (diff) | |
download | elgg-4da579033674ecdb134bc921f3f0666072419e6c.tar.gz elgg-4da579033674ecdb134bc921f3f0666072419e6c.tar.bz2 |
Fixes #5232 handling empty profile url field
Diffstat (limited to 'actions/profile')
-rw-r--r-- | actions/profile/edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/profile/edit.php b/actions/profile/edit.php index 63fb31600..b817463ac 100644 --- a/actions/profile/edit.php +++ b/actions/profile/edit.php @@ -48,7 +48,7 @@ foreach ($profile_fields as $shortname => $valuetype) { forward(REFERER); } - if ($valuetype == 'url' && !preg_match('~^https?\://~i', $value)) { + if ($value && $valuetype == 'url' && !preg_match('~^https?\://~i', $value)) { $value = "http://$value"; } |