added a check for http in homepage url, this should fix issue #768
This commit is contained in:
parent
964f2bc4b1
commit
0d7c91fc10
|
@ -288,6 +288,10 @@ function profiles_post(&$a) {
|
||||||
|
|
||||||
$sexual = notags(trim($_POST['sexual']));
|
$sexual = notags(trim($_POST['sexual']));
|
||||||
$homepage = notags(trim($_POST['homepage']));
|
$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']));
|
$hometown = notags(trim($_POST['hometown']));
|
||||||
$politic = notags(trim($_POST['politic']));
|
$politic = notags(trim($_POST['politic']));
|
||||||
$religion = notags(trim($_POST['religion']));
|
$religion = notags(trim($_POST['religion']));
|
||||||
|
|
Loading…
Reference in a new issue