]> git.mxchange.org Git - friendica.git/blobdiff - bin/testargs.php
spelling: completion
[friendica.git] / bin / testargs.php
index 05826f2e4271211e4923249135f5c4ea947ad2b0..0d736bcc26edc107cb7e5171bf6f39d6f1145ca0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
  *
  */
 
-use Friendica\Network\HTTPException\ForbiddenException;
-
 if (php_sapi_name() !== 'cli') {
-       throw new ForbiddenException();
+       header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
+       exit();
 }
 
 if (($_SERVER["argc"] > 1) && isset($_SERVER["argv"][1])) {