Prevent regex conflict on nginx URLs.

This commit is contained in:
Buster "Silver Eagle" Neece 2022-06-23 11:59:57 -05:00
parent 058d62706b
commit 696306cba4
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
1 changed files with 2 additions and 3 deletions

View File

@ -34,7 +34,7 @@ final class ConfigWriter implements EventSubscriberInterface
return;
}
$listenBaseUrl = CustomUrls::getListenUrl($station);
$listenBaseUrl = preg_quote(CustomUrls::getListenUrl($station), null);
$port = $station->getFrontendConfig()->getPort();
$event->appendBlock(
@ -63,8 +63,7 @@ final class ConfigWriter implements EventSubscriberInterface
return;
}
$webDjBaseUrl = CustomUrls::getWebDjUrl($station);
$webDjBaseUrl = preg_quote(CustomUrls::getWebDjUrl($station), null);
$autoDjPort = $station->getBackendConfig()->getDjPort();
$event->appendBlock(