Skip to content

Commit

Permalink
fix(backend): restrict the message_list worker access to CLI only (#1453
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mercihabam authored Feb 21, 2025
1 parent 423f5af commit 8aa4f07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/imap/workers/messages_list.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php

if (mb_strtolower(php_sapi_name()) !== 'cli') {
die("Must be run from the command line\n");
}

const APP_PATH = '';

require 'lib/framework.php';
Expand Down

0 comments on commit 8aa4f07

Please sign in to comment.