From fe15c893cbb3d7bbf621a8dd19092e068a009201 Mon Sep 17 00:00:00 2001 From: natec Date: Tue, 9 Oct 2001 19:22:33 +0000 Subject: [PATCH] Fixed profile bug where website contains a hyphen git-svn-id: file:///svn/phpbb/trunk@1141 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/profile.php b/phpBB/profile.php index 783ddadb64..98d70b377c 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -132,7 +132,7 @@ function validate_optional_fields(&$icq, &$aim, &$msnm, &$yim, &$website, &$loca $website = "http://" . $website; } - if (!preg_match("#^http\\:\\/\\/[a-z0-9]+\.[a-z0-9]+#i", $website)) + if (!preg_match("#^http\\:\\/\\/[a-z0-9\-]+\.[a-z0-9\-]+#i", $website)) { $website = ""; }