X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Ftestargs.php;h=fd671828a8e28833c4d64af6b7b57d5bf7585cb5;hb=881c4204b4d023ed559da386b5e5f2888c97abe0;hp=a0ddea34524f7dd5962b5af2eaf77c40c3e135fc;hpb=f1e7d97b8cae93e1c77f5a5085880409b01fcdbe;p=friendica.git diff --git a/bin/testargs.php b/bin/testargs.php index a0ddea3452..fd671828a8 100644 --- a/bin/testargs.php +++ b/bin/testargs.php @@ -1,10 +1,22 @@ . * - * Purpose: * During installation we need to check if register_argc_argv is * enabled for the command line PHP processor, because otherwise * deliveries will fail. So we will do a shell exec of php and @@ -14,6 +26,10 @@ * */ +if (php_sapi_name() !== 'cli') { + header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden'); + exit(); +} if (($_SERVER["argc"] > 1) && isset($_SERVER["argv"][1])) { echo $_SERVER["argv"][1];