mirror of
https://github.com/friendica/friendica
synced 2025-12-07 05:47:10 +01:00
Forbid non-CLI access to command-line scripts
This commit is contained in:
parent
3bd8b81154
commit
06632536f3
6 changed files with 29 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue