X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Ftestargs.php;h=9aed353037701676329844e3ea775ca94bb8e51a;hb=974f7bffc82d024a38b4709c6b250677a217f65a;hp=b7d7125f7a0fb6081ac0426b1d75449d376f4ae1;hpb=2c56d2f3360c08e312e5c167261af8e5d4b87af4;p=friendica.git diff --git a/bin/testargs.php b/bin/testargs.php index b7d7125f7a..9aed353037 100644 --- a/bin/testargs.php +++ b/bin/testargs.php @@ -26,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];