mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
696e319d11
commit
fe87f39b49
2 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,6 @@ function loadStandaloneConfiguration()
|
||||||
if (file_exists($configFile)) {
|
if (file_exists($configFile)) {
|
||||||
require_once $configFile;
|
require_once $configFile;
|
||||||
$streamerURL = $global['webSiteRootURL'];
|
$streamerURL = $global['webSiteRootURL'];
|
||||||
error_log("Rebroadcaster.json.php is using local configuration");
|
|
||||||
if($isStandAlone){
|
if($isStandAlone){
|
||||||
if (!isAPIKeyValid()) {
|
if (!isAPIKeyValid()) {
|
||||||
die('Invalid API Key');
|
die('Invalid API Key');
|
||||||
|
|
|
@ -147,6 +147,7 @@
|
||||||
// Remove dangerous characters
|
// Remove dangerous characters
|
||||||
$command = str_replace('&&', '', $command);
|
$command = str_replace('&&', '', $command);
|
||||||
$command = str_replace('rtmp://live/', 'rtmp://vlu.me/', $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')
|
// Remove existing log file redirection (e.g., '> /path/to/log 2>&1' or '> /path/to/log')
|
||||||
$command = preg_replace('/\s*>.*(?:2>&1)?/', '', $command);
|
$command = preg_replace('/\s*>.*(?:2>&1)?/', '', $command);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue