X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=blobdiff_plain;f=plugins%2Fupdater%2Finit.php;h=6ee018f74d766ec87285a36b69ee76ed8d9aa029;hp=ef48858b274afd0174c75dc9b2aca4d0e420853b;hb=96aba17f013a8457d154a7ba5c85451cfd69d239;hpb=f8eb8d78acef8beead4882cd46c2a36a3250809f diff --git a/plugins/updater/init.php b/plugins/updater/init.php index ef48858b..6ee018f7 100644 --- a/plugins/updater/init.php +++ b/plugins/updater/init.php @@ -63,6 +63,20 @@ class Updater extends Plugin { putenv("PATH=" . getenv("PATH") . PATH_SEPARATOR . "/bin" . PATH_SEPARATOR . "/usr/bin"); + array_push($log, "Checking for system() call..."); + + $disabled = explode(',', ini_get('disable_functions')); + foreach ($disabled as $function) { + if ( trim($function) == 'system' ) { + array_push($log, "Can not execute commands with PHP's system() function."); + $stop = true; + } + } + + if ( $stop == true ) { + break; + } + array_push($log, "Checking for tar..."); $system_rc = 0;