projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build form properly for FinancialItemTest::testGetPreviousFinancialItemHavingTax
[civicrm-core.git]
/
sql
/
GenerateMailing.php
diff --git
a/sql/GenerateMailing.php
b/sql/GenerateMailing.php
index d9af5ca112712e418c80b8122e58d52f5a568acf..1ea8e744e8d04b977eb6631dc3343d4a004f7217 100644
(file)
--- a/
sql/GenerateMailing.php
+++ b/
sql/GenerateMailing.php
@@
-14,6
+14,11
@@
* @package CRM
* @copyright CiviCRM LLC https://civicrm.org/licensing
*/
* @package CRM
* @copyright CiviCRM LLC https://civicrm.org/licensing
*/
+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';
require_once '../civicrm.config.php';