X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=sql%2FGenerateReportData.php;h=bfb77ad0b35447e09aa7491965126f0c06f68bcc;hb=5c732bc268fd29a7599e3c2675544891ad0b1403;hp=83a94cd7f3807b11d17dfa120997a27d2e6e903e;hpb=64aa560db1b9afecf26162220cf0eb8153ff5a11;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';