mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-10 23:17:53 +00:00
fix yggdrasil trackers validation
This commit is contained in:
parent
6e3ba1a05a
commit
670d930573
@ -241,7 +241,7 @@ else {
|
||||
)
|
||||
);
|
||||
|
||||
if (preg_match(YGGDRASIL_URL_REGEX, $url->host->name))
|
||||
if (preg_match(YGGDRASIL_URL_REGEX, str_replace(['[',']'], false, $url->host->name)))
|
||||
{
|
||||
$response->form->tr->valid->success = true;
|
||||
$response->form->tr->valid->message = false;
|
||||
@ -277,7 +277,7 @@ else {
|
||||
)
|
||||
);
|
||||
|
||||
if (preg_match(YGGDRASIL_URL_REGEX, $url->host->name))
|
||||
if (preg_match(YGGDRASIL_URL_REGEX, str_replace(['[',']'], false, $url->host->name)))
|
||||
{
|
||||
$response->form->as->valid->success = true;
|
||||
$response->form->as->valid->message = false;
|
||||
@ -313,7 +313,7 @@ else {
|
||||
)
|
||||
);
|
||||
|
||||
if (preg_match(YGGDRASIL_URL_REGEX, $url->host->name))
|
||||
if (preg_match(YGGDRASIL_URL_REGEX, str_replace(['[',']'], false, $url->host->name)))
|
||||
{
|
||||
$response->form->xs->valid->success = true;
|
||||
$response->form->xs->valid->message = false;
|
||||
|
Loading…
Reference in New Issue
Block a user