X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=sql%2FGenerateGroups.php;h=18381428ea9132eaab2d375abdca02dde137c171;hb=77912eece937257549ac6e9791456372b4bf05f3;hp=205b73d518952bc4ed2550ebe8f9548dbfe850f7;hpb=2c20f50e843b464ce6c93c264f2545cff3e3edea;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';