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
/
worker.php
diff --git
a/bin/worker.php
b/bin/worker.php
index
1b70a20
..
833e5b0
100755
(executable)
--- a/
bin/worker.php
+++ b/
bin/worker.php
@@
-21,6
+21,11
@@
* Starts the background processing
*/
+if (php_sapi_name() !== 'cli') {
+ header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
+ exit();
+}
+
use Dice\Dice;
use Friendica\App;
use Friendica\Core\Update;