X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Ftestargs.php;h=0d736bcc26edc107cb7e5171bf6f39d6f1145ca0;hb=70f248971052924e1b62365c7444f810aa18d5be;hp=a0ddea34524f7dd5962b5af2eaf77c40c3e135fc;hpb=034d0f650b9b239965e29657502c9e64bb25b96a;p=friendica.git diff --git a/bin/testargs.php b/bin/testargs.php index a0ddea3452..0d736bcc26 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];