summaryrefslogtreecommitdiff
path: root/includes/comment.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-01-20 12:58:47 +0000
committerDries Buytaert <dries@buytaert.net>2001-01-20 12:58:47 +0000
commit8b4181d0852c58538151853d18c7deab1fe6344e (patch)
treecf5bfeb3d4291d17028c6ff813ab7c2f55410f79 /includes/comment.inc
parente25c50b994ced3822bafd84d2358eddbdecf852f (diff)
downloadbrdo-8b4181d0852c58538151853d18c7deab1fe6344e.tar.gz
brdo-8b4181d0852c58538151853d18c7deab1fe6344e.tar.bz2
- 2 more bugfixes
Diffstat (limited to 'includes/comment.inc')
-rw-r--r--includes/comment.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/comment.inc b/includes/comment.inc
index 6e01ada3d..cf6ce6919 100644
--- a/includes/comment.inc
+++ b/includes/comment.inc
@@ -2,7 +2,7 @@
// Security check:
if (strstr($id, " ") || strstr($pid, " ") || strstr($lid, " ") || strstr($mode, " ") || strstr($order, " ") || strstr($threshold, " ")) {
- watchdog("error", "discussion: attempt to provide malicious input through URI");
+ watchdog("error", "comment: attempt to provide malicious input through URI");
exit();
}
@@ -155,7 +155,7 @@ function comment_post($pid, $id, $subject, $comment) {
$duplicate = db_result(db_query("SELECT COUNT(cid) FROM comments WHERE link = '$link' AND pid = '$pid' AND lid = '$id' AND subject = '". check_input($subject) ."' AND comment = '". check_input($comment) ."'"), 0);
if ($duplicate != 0) {
- watchdog("error", "discussion: attempt to insert duplicate comment");
+ watchdog("error", "comment: attempt to insert duplicate comment");
$theme->box("duplicate comment", "duplicate comment: $duplicate");
}
else {
@@ -163,7 +163,7 @@ function comment_post($pid, $id, $subject, $comment) {
$subject = ($subject) ? $subject : substr($comment, 0, 29);
// Add watchdog entry:
- watchdog("comment", "discussion: added comment with subject '$subject'");
+ watchdog("comment", "comment: added comment with subject '$subject'");
// Add comment to database:
db_query("INSERT INTO comments (link, lid, pid, author, subject, comment, hostname, timestamp, score) VALUES ('". check_input($link) ."', $id, $pid, '$user->id', '". check_input($subject) ."', '". check_input($comment) ."', '". getenv("REMOTE_ADDR") ."', '". time() ."', '". ($user->userid ? 1 : 0) ."')");