Merge pull request #20905 from eileenmcnaughton/utf8
[civicrm-core.git] / sql / GenerateMailing.php
index d9af5ca112712e418c80b8122e58d52f5a568acf..1ea8e744e8d04b977eb6631dc3343d4a004f7217 100644 (file)
  * @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';