https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Forbid non-CLI access to command-line scripts
[friendica.git/.git]
/
bin
/
auth_ejabberd.php
diff --git
a/bin/auth_ejabberd.php
b/bin/auth_ejabberd.php
index
fa71faf
..
e921829
100755
(executable)
--- a/
bin/auth_ejabberd.php
+++ b/
bin/auth_ejabberd.php
@@
-51,6
+51,11
@@
*
*/
+if (php_sapi_name() !== 'cli') {
+ header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
+ exit();
+}
+
use Dice\Dice;
use Friendica\App\Mode;
use Friendica\Util\ExAuth;