From 1c22e7a40728fde76b9b9e5afd168f8eb0313268 Mon Sep 17 00:00:00 2001 From: Henry Sudhof Date: Fri, 29 Jun 2007 11:39:22 +0000 Subject: [PATCH] Oh well, not much we can do for boards already converted. #12819 git-svn-id: file:///svn/phpbb/trunk@7807 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/docs/CHANGELOG.html | 1 + phpBB/includes/functions_convert.php | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index b01e970ef5..b7201dface 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -196,6 +196,7 @@ p a {
  • [Fix] Allow adding of help language files within subdirectories (Bug #12783)
  • [Fix] Correctly apply smileys on posting having # within their emotion code
  • [Fix] Correctly convert smileys having double quotes within their emotion code (Bug #12731)
  • +
  • [Fix] The converter now adds the protocol to user website profile fields missing it (Bug #12819)
  • 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; + } } /**