]> git.mxchange.org Git - friendica.git/blobdiff - mod/profiles.php
Merge pull request #927 from annando/master
[friendica.git] / mod / profiles.php
index c700b8234c2d240cd08b7362751cf29804c401e7..06b85045001a5bcd41ca19cf6e1ed397d36e581f 100644 (file)
@@ -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']));