better logic
This commit is contained in:
parent
0d7c91fc10
commit
fda7bdca2e
|
@ -288,7 +288,7 @@ 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) {
|
if (strpos($homepage, 'http') !== 0) {
|
||||||
// neither http nor https in URL, add them
|
// neither http nor https in URL, add them
|
||||||
$homepage = 'http://'.$homepage;
|
$homepage = 'http://'.$homepage;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue