Commit 6ee384e1 authored by Jody Lynn's avatar Jody Lynn Committed by Crell
Browse files

include access denied watchdog call in on403Html

parent 74fffed4
......@@ -95,6 +95,8 @@ public function on405Html(FlattenException $exception, Request $request) {
public function on403Html(FlattenException $exception, Request $request) {
$system_path = $request->attributes->get('system_path');
watchdog('access denied', $system_path, NULL, WATCHDOG_WARNING);
$path = drupal_get_normal_path(variable_get('site_403', ''));
if ($path && $path != $system_path) {
// Keep old path for reference, and to allow forms to redirect to it.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment