Fixed profile bug where website contains a hyphen

git-svn-id: file:///svn/phpbb/trunk@1141 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
natec 2001-10-09 19:22:33 +00:00
parent ec3a90a913
commit fe15c893cb

View file

@ -132,7 +132,7 @@ function validate_optional_fields(&$icq, &$aim, &$msnm, &$yim, &$website, &$loca
$website = "http://" . $website; $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 = ""; $website = "";
} }