From: Tobias Diekershoff Date: Sun, 12 Jan 2014 08:16:46 +0000 (+0100) Subject: added a check for http in homepage url, this should fix issue #768 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0d7c91fc10e0d32171459bdde2f1d829f9306624;p=friendica.git added a check for http in homepage url, this should fix issue #768 --- diff --git a/mod/profiles.php b/mod/profiles.php index 148c632914..ad1f9a3512 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') === 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']));