1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
Daniel Neto 2024-12-03 11:49:37 -03:00
parent 696e319d11
commit fe87f39b49
2 changed files with 1 additions and 1 deletions

View file

@ -30,7 +30,6 @@ function loadStandaloneConfiguration()
if (file_exists($configFile)) {
require_once $configFile;
$streamerURL = $global['webSiteRootURL'];
error_log("Rebroadcaster.json.php is using local configuration");
if($isStandAlone){
if (!isAPIKeyValid()) {
die('Invalid API Key');

View file

@ -147,6 +147,7 @@
// Remove dangerous characters
$command = str_replace('&&', '', $command);
$command = str_replace('rtmp://live/', 'rtmp://vlu.me/', $command);
$command = str_replace('https://live:8443/', 'https://vlu.me:8443/', $command);
// Remove existing log file redirection (e.g., '> /path/to/log 2>&1' or '> /path/to/log')
$command = preg_replace('/\s*>.*(?:2>&1)?/', '', $command);