mirror of
https://github.com/friendica/friendica
synced 2024-12-24 18:00:15 +00:00
Merge pull request #1029 from tobiasd/fix1027
don't add http:// if homepage is not set
This commit is contained in:
commit
9248c2c3c4
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ function profiles_post(&$a) {
|
|||
|
||||
$sexual = notags(trim($_POST['sexual']));
|
||||
$homepage = notags(trim($_POST['homepage']));
|
||||
if (strpos($homepage, 'http') !== 0) {
|
||||
if ((strpos($homepage, 'http') !== 0) && (strlen($homepage))) {
|
||||
// neither http nor https in URL, add them
|
||||
$homepage = 'http://'.$homepage;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue