X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=sql%2FGenerateReportData.php;h=bfb77ad0b35447e09aa7491965126f0c06f68bcc;hb=2c50777fcb9d495c7739f4f3ab5d7d68a38da0ba;hp=f415959c6a009eec56ec0a50a6e71d3d59522e4a;hpb=4a857b55aa93910463dad24efcdf76035b50a517;p=civicrm-core.git diff --git a/sql/GenerateReportData.php b/sql/GenerateReportData.php index f415959c6a..bfb77ad0b3 100644 --- a/sql/GenerateReportData.php +++ b/sql/GenerateReportData.php @@ -76,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';