- don't use validate* functions before checking php-filter-extension, fixes #98

This commit is contained in:
Michael Kaufmann (d00p)
2010-03-29 13:08:01 +00:00
parent 230c2a1cf3
commit ab1e3c3fc8

View File

@@ -289,7 +289,7 @@ else
{
if(!empty($_SERVER['SERVER_NAME']))
{
if(validate_ip($_SERVER['SERVER_NAME'], true) == false)
if(preg_match('/^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$/', $_SERVER['SERVER_NAME']) === false)
{
$servername = $_SERVER['SERVER_NAME'];
}