- Patch #256509 by dropcube: return a 403 - access denied when an invalid cron key is used.

merge-requests/26/head
Dries Buytaert 2008-05-26 17:24:42 +00:00
parent 7804e634d6
commit fe7761fc54
1 changed files with 1 additions and 0 deletions

View File

@ -13,4 +13,5 @@ if (isset($_GET['cron_key']) && variable_get('cron_key', 'drupal') == $_GET['cro
}
else {
watchdog('cron', 'Cron did not run because an invalid key used.', array(), WATCHDOG_NOTICE);
drupal_access_denied();
}