added a check for http in homepage url, this should fix issue #768

This commit is contained in:
Tobias Diekershoff 2014-01-12 09:16:46 +01:00
parent 964f2bc4b1
commit 0d7c91fc10
1 changed files with 4 additions and 0 deletions

View File

@ -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']));