X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Ftestargs.php;h=55197f63a3d2641dea57aa6db314b25270a7cd7c;hb=8357a70c4bc7a104373be2ddde6e8d918ea5721b;hp=a0ddea34524f7dd5962b5af2eaf77c40c3e135fc;hpb=1de3960e267a8d298348fbca18cf1be1f6a20f7a;p=friendica.git diff --git a/bin/testargs.php b/bin/testargs.php index a0ddea3452..55197f63a3 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];