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
/
console.php
diff --git
a/bin/console.php
b/bin/console.php
index
27522d8
..
4d5b4c7
100755
(executable)
--- a/
bin/console.php
+++ b/
bin/console.php
@@
-20,6
+20,11
@@
*
*/
+if (php_sapi_name() !== 'cli') {
+ header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
+ exit();
+}
+
use Dice\Dice;
use Psr\Log\LoggerInterface;