diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-03 23:32:55 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-03 23:32:55 +0000 |
commit | ae28425926baf8d51c4883cdd1c164a6c4f8bb9f (patch) | |
tree | 452703f46c3a697191ace49c23969fa60a3d2d9c | |
parent | 6fb8d182f8ea1f95bdcd0fc3f07b4e349258cc83 (diff) | |
download | brdo-ae28425926baf8d51c4883cdd1c164a6c4f8bb9f.tar.gz brdo-ae28425926baf8d51c4883cdd1c164a6c4f8bb9f.tar.bz2 |
- Patch #904994 by Dave Reid: fix watchdog behavior.
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index c4cff1c5c..b99ceac97 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -2431,7 +2431,7 @@ function drupal_deliver_html_page($page_callback_result) { // Print a 404 page. drupal_add_http_header('Status', '404 Not Found'); - watchdog('page not found', 'page not found: %q.', array('%q' => $_GET['q']), WATCHDOG_WARNING); + watchdog('page not found', check_plain($_GET['q']), NULL, WATCHDOG_WARNING); // Keep old path for reference, and to allow forms to redirect to it. if (!isset($_GET['destination'])) { @@ -2460,7 +2460,7 @@ function drupal_deliver_html_page($page_callback_result) { case MENU_ACCESS_DENIED: // Print a 403 page. drupal_add_http_header('Status', '403 Forbidden'); - watchdog('access denied', 'access denied: %q', array('%q' => $_GET['q']), WATCHDOG_WARNING); + watchdog('access denied', check_plain($_GET['q']), NULL, WATCHDOG_WARNING); // Keep old path for reference, and to allow forms to redirect to it. if (!isset($_GET['destination'])) { |