summaryrefslogtreecommitdiff
path: root/cron.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-03-17 16:53:58 +0000
committerDries Buytaert <dries@buytaert.net>2008-03-17 16:53:58 +0000
commit45097b78b7ff86e2d5ecd53d9926204d52c87955 (patch)
tree57fdb6b07f08dfce2bd220ff4452b729704043dd /cron.php
parent2e2c2bcac0ee76a081242ab8124c102fd4bda72b (diff)
downloadbrdo-45097b78b7ff86e2d5ecd53d9926204d52c87955.tar.gz
brdo-45097b78b7ff86e2d5ecd53d9926204d52c87955.tar.bz2
- Patch #52910 by kbahey, keith.smith, Susurrus, et al: restict access to cron.php.
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/cron.php b/cron.php
index f242ee782..e40dc2d9b 100644
--- a/cron.php
+++ b/cron.php
@@ -8,4 +8,6 @@
include_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
-drupal_cron_run();
+if (isset($_GET['cron_key']) && variable_get('cron_key', 'drupal') == $_GET['cron_key']) {
+ drupal_cron_run();
+} \ No newline at end of file