projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
security/core#97 Ensure that php scripts where applicable in sql and tools that shoul...
[civicrm-core.git]
/
sql
/
GenerateData.php
diff --git
a/sql/GenerateData.php
b/sql/GenerateData.php
index 63c2b30b23a861ab2fae3e8f1c9dfca1d36a8409..fe7b5b511d7f8963a456ae4fe5af4a6937b9b7ab 100644
(file)
--- a/
sql/GenerateData.php
+++ b/
sql/GenerateData.php
@@
-69,6
+69,10
@@
*
*/
+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';
CRM_Core_Config::singleton();