X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fauth_ejabberd.php;h=d6e20dfe15bd435cb47046b7fc3a12ca69592959;hb=974f7bffc82d024a38b4709c6b250677a217f65a;hp=fa71faf263915b45c334ca4ce0694f3f41485b9b;hpb=8565617ea120b7ff3d8783e90070e286e8b119c0;p=friendica.git diff --git a/bin/auth_ejabberd.php b/bin/auth_ejabberd.php index fa71faf263..d6e20dfe15 100755 --- a/bin/auth_ejabberd.php +++ b/bin/auth_ejabberd.php @@ -51,9 +51,14 @@ * */ +if (php_sapi_name() !== 'cli') { + header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden'); + exit(); +} + use Dice\Dice; use Friendica\App\Mode; -use Friendica\Util\ExAuth; +use Friendica\Security\ExAuth; use Psr\Log\LoggerInterface; if (sizeof($_SERVER["argv"]) == 0) {