mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
7efa7464df
commit
be0f7847b7
1 changed files with 11 additions and 2 deletions
|
@ -176,8 +176,17 @@ if (empty($codeToExec)) {
|
||||||
die('Invalid Request');
|
die('Invalid Request');
|
||||||
}
|
}
|
||||||
|
|
||||||
$ffmpegCommand = sanitizeFFmpegCommand($codeToExec->ffmpegCommand);
|
if(!empty($codeToExec->ffmpegCommand)){
|
||||||
$keyword = preg_replace('/[^a-zA-Z0-9_-]/', '', $codeToExec->keyword);
|
$ffmpegCommand = sanitizeFFmpegCommand($codeToExec->ffmpegCommand);
|
||||||
|
}else{
|
||||||
|
$ffmpegCommand = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!empty($codeToExec->keyword)){
|
||||||
|
$keyword = sanitizeFFmpegCommand($codeToExec->keyword);
|
||||||
|
}else{
|
||||||
|
$keyword = '';
|
||||||
|
}
|
||||||
|
|
||||||
// Kill processes associated with the keyword
|
// Kill processes associated with the keyword
|
||||||
if (!empty($keyword)) {
|
if (!empty($keyword)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue