X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=sql%2FGenerateData.php;h=40dca615a15c95dd4be554118078f8350b5b619d;hb=79d21b5b9ced5e5dedb4fd9c70c67a0bdc49f228;hp=63c2b30b23a861ab2fae3e8f1c9dfca1d36a8409;hpb=a7b9631b60548092f8c3056c375dd4b81606dbd4;p=civicrm-core.git diff --git a/sql/GenerateData.php b/sql/GenerateData.php index 63c2b30b23..40dca615a1 100644 --- a/sql/GenerateData.php +++ b/sql/GenerateData.php @@ -69,6 +69,10 @@ * */ +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'; CRM_Core_Config::singleton();