diff --git a/mod/profiles.php b/mod/profiles.php index 148c63291..65c329af1 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -288,6 +288,10 @@ function profiles_post(&$a) { $sexual = notags(trim($_POST['sexual'])); $homepage = notags(trim($_POST['homepage'])); + if (strpos($homepage, 'http') !== 0) { + // 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']));