mirror of
https://github.com/friendica/friendica
synced 2024-12-23 13:20:21 +00:00
added a check for http in homepage url, this should fix issue #768
This commit is contained in:
parent
964f2bc4b1
commit
0d7c91fc10
1 changed files with 4 additions and 0 deletions
|
@ -288,6 +288,10 @@ function profiles_post(&$a) {
|
|||
|
||||
$sexual = notags(trim($_POST['sexual']));
|
||||
$homepage = notags(trim($_POST['homepage']));
|
||||
if (strpos($homepage, 'http') === false) {
|
||||
// neither http nor https in URL, add them
|
||||
$homepage = 'http://'.$homepage;
|
||||
}
|
||||
$hometown = notags(trim($_POST['hometown']));
|
||||
$politic = notags(trim($_POST['politic']));
|
||||
$religion = notags(trim($_POST['religion']));
|
||||
|
|
Loading…
Reference in a new issue