From b6e546d1e3a81bb3b1fabc54d1ede37e7f1ce8c1 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 22 Jun 2014 09:44:59 +0200 Subject: [PATCH] don't add http:// if homepage is not set --- mod/profiles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/profiles.php b/mod/profiles.php index 06b8504500..a36c9730b3 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -288,7 +288,7 @@ function profiles_post(&$a) { $sexual = notags(trim($_POST['sexual'])); $homepage = notags(trim($_POST['homepage'])); - if (strpos($homepage, 'http') !== 0) { + if ((strpos($homepage, 'http') !== 0) && (strlen($homepage))) { // neither http nor https in URL, add them $homepage = 'http://'.$homepage; } -- 2.39.5