diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 8235b9f94c2b362c1286346e57e526a30b581ea6..3f2a085b2894bd64853669267bab8b85a2fdbbf6 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -2564,7 +2564,7 @@ function drupal_fast_404() { $fast_paths = variable_get('404_fast_paths', FALSE); if ($fast_paths && preg_match($fast_paths, request_path())) { drupal_add_http_header('Status', '404 Not Found'); - $fast_404_html = variable_get('404_fast_html', '404 Not Found

Not Found

The requested URL "@path" was not found on this server.

'); + $fast_404_html = variable_get('404_fast_html', '404 Not Found

Not Found

The requested URL "@path" was not found on this server.

'); // Replace @path in the variable with the page path. print strtr($fast_404_html, array('@path' => check_plain(request_uri()))); exit; diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php index 8e95dba25f62cd633a624f8883d9bfbc162a9e19..deace30e1ff30a317ccf2832b9e6eab43a9d5845 100755 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -519,7 +519,7 @@ */ $conf['404_fast_paths_exclude'] = '/\/(?:styles)\//'; $conf['404_fast_paths'] = '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i'; -$conf['404_fast_html'] = '404 Not Found

Not Found

The requested URL "@path" was not found on this server.

'; +$conf['404_fast_html'] = '404 Not Found

Not Found

The requested URL "@path" was not found on this server.

'; /** * By default, fast 404s are returned as part of the normal page request