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-22 17:02:15 -03:00
parent 59235e20f3
commit 8988a9a9f4
4 changed files with 5 additions and 3 deletions

View file

@ -158,7 +158,7 @@ function sanitizeFFmpegCommand($command)
$command = str_replace('rtmp://vlu.me/', 'rtmp://live/', $command);
//$command = str_replace('rtmp://live/', 'rtmp://vlu.me/', $command);
//$command = str_replace('https://live:8443/', 'https://vlu.me:8443/', $command);
$command = preg_replace('/\s*>.*(?:2>&1)?/', '', $command);
$command = preg_replace('/\s*&?>.*(?:2>&1)?/', '', $command);
$command = preg_replace('/[;|`<>]/', '', $command);
// Ensure it starts with an allowed prefix

View file

@ -296,6 +296,8 @@ class CDN extends PluginAbstract
$url = 'https://youphp.tube/marketplace/CDN/Manager/pullzonesPurgeCache.json.php';
$url = addQueryStringParameter($url, 'hash', $obj->key);
_error_log("CDN::purgeCache ".json_encode(debug_backtrace()));
return url_get_contents($url);
}
}

View file

@ -209,7 +209,7 @@ $custom = User::getRedirectCustomUrl(User::getId());
function saveCustomURL(viewerUrl, customMessage) {
var autoRedirect = $('#autoRedirect').is(':checked'); // Check if auto-redirect is enabled
autoRedirect = $('#autoRedirect').is(':checked'); // Check if auto-redirect is enabled
modal.showPleaseWait();
// Save viewerUrl to database using AJAX

View file

@ -17,7 +17,7 @@ $obj->msg = "";
$obj->users_id = User::getId();
$obj->redirectCustomUrl = $_REQUEST['customUrl'];
$obj->redirectCustomMessage = $_REQUEST['customMessage'];
$obj->autoRedirect = !empty($_REQUEST['autoRedirect']) ? 1 : 0;
$obj->autoRedirect = !_empty($_REQUEST['autoRedirect']) ? 1 : 0;
$obj->setRedirectCustomUrl = User::setRedirectCustomUrl(User::getId(), array('url'=>$obj->redirectCustomUrl, 'msg'=>$obj->redirectCustomMessage, 'autoRedirect'=>$obj->autoRedirect));
$obj->error = empty($obj->setRedirectCustomUrl);