mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
59235e20f3
commit
8988a9a9f4
4 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue