1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2024-12-04 11:41:19 -03:00
parent 7efa7464df
commit be0f7847b7

View file

@ -176,8 +176,17 @@ if (empty($codeToExec)) {
die('Invalid Request');
}
if(!empty($codeToExec->ffmpegCommand)){
$ffmpegCommand = sanitizeFFmpegCommand($codeToExec->ffmpegCommand);
$keyword = preg_replace('/[^a-zA-Z0-9_-]/', '', $codeToExec->keyword);
}else{
$ffmpegCommand = '';
}
if(!empty($codeToExec->keyword)){
$keyword = sanitizeFFmpegCommand($codeToExec->keyword);
}else{
$keyword = '';
}
// Kill processes associated with the keyword
if (!empty($keyword)) {