X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=sql%2FGenerateReportData.php;h=bfb77ad0b35447e09aa7491965126f0c06f68bcc;hb=2beecf9e25d0fde3a7bcc5b1e60df939d494201d;hp=83a94cd7f3807b11d17dfa120997a27d2e6e903e;hpb=938854224e11b0d61889844c1ea78f7f99ced5a8;p=civicrm-core.git diff --git a/sql/GenerateReportData.php b/sql/GenerateReportData.php index 83a94cd7f3..bfb77ad0b3 100644 --- a/sql/GenerateReportData.php +++ b/sql/GenerateReportData.php @@ -13,8 +13,6 @@ * * @package CRM * @copyright CiviCRM LLC https://civicrm.org/licensing - * $Id$ - * */ /** @@ -78,7 +76,10 @@ * php versions. * @todo look to remove this file completely. */ - +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';