fix undefined variable

This commit is contained in:
ghost 2023-09-15 22:13:31 +03:00
parent 43c617e893
commit a94ec250ff

View File

@ -27,7 +27,7 @@ class Valid
return false;
}
if (!preg_match(YGGDRASIL_HOST_REGEX, str_replace(['[',']'], false, $url->host->name)))
if (!preg_match(YGGDRASIL_HOST_REGEX, str_replace(['[',']'], false, $value)))
{
array_push(
self::$_error,