Skip to content

Commit 8aa4f07

Browse files
authored
fix(backend): restrict the message_list worker access to CLI only (#1453)
1 parent 423f5af commit 8aa4f07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/imap/workers/messages_list.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<?php
2+
3+
if (mb_strtolower(php_sapi_name()) !== 'cli') {
4+
die("Must be run from the command line\n");
5+
}
6+
27
const APP_PATH = '';
38

49
require 'lib/framework.php';

0 commit comments

Comments
 (0)