X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=sql%2FGenerateGroups.php;h=18381428ea9132eaab2d375abdca02dde137c171;hb=c66054d28435f089215f8f6a1e581312fc31cbbe;hp=205b73d518952bc4ed2550ebe8f9548dbfe850f7;hpb=deabc299ad4ad5de6edb59b7ebdd2912b2feaa78;p=civicrm-core.git diff --git a/sql/GenerateGroups.php b/sql/GenerateGroups.php index 205b73d518..18381428ea 100644 --- a/sql/GenerateGroups.php +++ b/sql/GenerateGroups.php @@ -14,6 +14,10 @@ * @package CRM * @copyright CiviCRM LLC https://civicrm.org/licensing */ +if (!(php_sapi_name() == 'cli' || (is_numeric($_SERVER['argc']) && $_SERVER['argc'] > 0))) { + header("HTTP/1.0 404 Not Found"); + return; +} require_once '../civicrm.config.php';