]> git.mxchange.org Git - friendica.git/commitdiff
don't add http:// if homepage is not set
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 22 Jun 2014 07:44:59 +0000 (09:44 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 22 Jun 2014 07:44:59 +0000 (09:44 +0200)
mod/profiles.php

index 06b85045001a5bcd41ca19cf6e1ed397d36e581f..a36c9730b3e1187d3646e9625df59797561be8c5 100644 (file)
@@ -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;
                }