mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +00:00
Correctly escape shell command in subprocesds service driver
This commit is contained in:
parent
a5049ac646
commit
9120d3b3e3
1 changed files with 2 additions and 2 deletions
|
@ -31,8 +31,8 @@ class Driver implements \JKingWeb\Arsse\Service\Driver {
|
|||
$pp = [];
|
||||
while ($this->queue) {
|
||||
$id = (int) array_shift($this->queue);
|
||||
$php = '"'.\PHP_BINARY.'"';
|
||||
$arsse = '"'.$_SERVER['argv'][0].'"';
|
||||
$php = escapeshellarg(\PHP_BINARY);
|
||||
$arsse = escapeshellarg($_SERVER['argv'][0]);
|
||||
array_push($pp, popen("$php $arsse feed refresh $id", "r"));
|
||||
}
|
||||
while ($pp) {
|
||||
|
|
Loading…
Reference in a new issue