mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 17:45:31 +00:00
fix yggdrasil trackers validation
This commit is contained in:
parent
6e3ba1a05a
commit
670d930573
1 changed files with 3 additions and 3 deletions
|
|
@ -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->success = true;
|
||||||
$response->form->tr->valid->message = false;
|
$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->success = true;
|
||||||
$response->form->as->valid->message = false;
|
$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->success = true;
|
||||||
$response->form->xs->valid->message = false;
|
$response->form->xs->valid->message = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue