Merge pull request #23958 from civicrm/5.51
[civicrm-core.git] / sql / GenerateReportData.php
index f415959c6a009eec56ec0a50a6e71d3d59522e4a..bfb77ad0b35447e09aa7491965126f0c06f68bcc 100644 (file)
  * 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';