aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_convert.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_convert.php')
-rw-r--r--phpBB/includes/functions_convert.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/includes/functions_convert.php b/phpBB/includes/functions_convert.php
index 324844aa7f..0aa3c205f5 100644
--- a/phpBB/includes/functions_convert.php
+++ b/phpBB/includes/functions_convert.php
@@ -224,7 +224,13 @@ function make_uid($timestamp)
*/
function validate_website($url)
{
- return ($url == 'http://') ? '' : $url;
+ if ($url === 'http://'){
+ return '';
+ }
+ else if (strstr('http://', $url) !== 0)
+ {
+ return 'http://' . $url;
+ }
}
/**