diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-09-11 01:47:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-09-11 01:47:14 +0000 |
commit | dde18582493270fadd9aefa4d5569faa9cc6f269 (patch) | |
tree | 1ac5ad0edbf7d6ea6bd6439db964f48d9da9afb2 /includes | |
parent | 8ed9f604c9f2a32ec1473fad30830c4b6d4c06d1 (diff) | |
download | brdo-dde18582493270fadd9aefa4d5569faa9cc6f269.tar.gz brdo-dde18582493270fadd9aefa4d5569faa9cc6f269.tar.bz2 |
- Patch #904994 by douggreen, chx: watchdog should always use replaceable argument.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc index ae308b001..2785b3f5e 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -2398,7 +2398,7 @@ function drupal_deliver_page($page_callback_result, $default_delivery_callback = // If a delivery callback is specified, but doesn't exist as a function, // something is wrong, but don't print anything, since it's not known // what format the response needs to be in. - watchdog('delivery callback not found', check_plain($delivery_callback) . ': ' . check_plain($_GET['q']), NULL, WATCHDOG_ERROR); + watchdog('delivery callback not found', 'callback %callback not found: %q.', array('%callback' => $delivery_callback, '%q' => $_GET['q']), WATCHDOG_ERROR); } } @@ -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', check_plain($_GET['q']), NULL, WATCHDOG_WARNING); + watchdog('page not found', 'page not found: %q.', array('%q' => $_GET['q']), 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', check_plain($_GET['q']), NULL, WATCHDOG_WARNING); + watchdog('access denied', 'access denied: %q', array('%q' => $_GET['q']), WATCHDOG_WARNING); // Keep old path for reference, and to allow forms to redirect to it. if (!isset($_GET['destination'])) { |