diff -u b/core/includes/theme.maintenance.inc b/core/includes/theme.maintenance.inc --- b/core/includes/theme.maintenance.inc +++ b/core/includes/theme.maintenance.inc @@ -194,7 +194,7 @@ } /** - * Renders a 403 access denied page for update.php. + * Renders a 403 access denied page for update.php or similar script. * * @return * Rendered HTML warning with 403 status. @@ -202,7 +202,7 @@ function maintenance_access_denied_page($script_name = 'update.php', $settings_name = 'update_free_access', $login = TRUE, $postfix = '') { drupal_add_http_header('Status', '403 Forbidden'); header(\Drupal::request()->server->get('SERVER_PROTOCOL') . ' 403 Forbidden'); - watchdog('access denied', 'update.php', NULL, WATCHDOG_WARNING); + watchdog('access denied', $script_name, NULL, WATCHDOG_WARNING); drupal_set_title('Access denied'); $output = '

Access denied. You are not authorized to access this page.'; if ($login) {