projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
always set formTpl
[civicrm-core.git]
/
sql
/
GenerateReportData.php
diff --git
a/sql/GenerateReportData.php
b/sql/GenerateReportData.php
index f415959c6a009eec56ec0a50a6e71d3d59522e4a..bfb77ad0b35447e09aa7491965126f0c06f68bcc 100644
(file)
--- 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';