mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
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:
parent
ec3a90a913
commit
fe15c893cb
1 changed files with 1 additions and 1 deletions
|
@ -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 = "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue