summaryrefslogtreecommitdiff
path: root/includes/watchdog.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/watchdog.inc')
-rw-r--r--includes/watchdog.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/watchdog.inc b/includes/watchdog.inc
index 628fabcca..c0d68ed37 100644
--- a/includes/watchdog.inc
+++ b/includes/watchdog.inc
@@ -22,7 +22,7 @@ function watchdog($id, $message) {
}
// perform query to add new watchdog entry:
- db_query("INSERT INTO watchdog (level, timestamp, user, message, location, hostname) VALUES ('". $watchdog[$id][0] ."', '". time() ."', '". check_input($user->id) ."', '". check_input($message) ."', '". check_input(getenv("REQUEST_URI")) ."', '". check_input(getenv("REMOTE_ADDR")) ."')");
+ db_query("INSERT INTO watchdog (level, timestamp, user, message, location, hostname) VALUES ('". $watchdog[$id][0] ."', '". time() ."', '". check_input($user->id) ."', '". check_input(check_output($message)) ."', '". check_input(getenv("REQUEST_URI")) ."', '". check_input(getenv("REMOTE_ADDR")) ."')");
}
function watchdog_clean($history = 302400) {