- Patch #87755 by kjartan: anonymous comments can't save names.

5.x
Dries Buytaert 2006-10-09 06:59:01 +00:00
parent 2378379131
commit 6e8a0a1602
1 changed files with 1 additions and 1 deletions

View File

@ -656,7 +656,7 @@ function comment_save($edit) {
$edit['cid'] = db_next_id('{comments}_cid');
$edit['timestamp'] = time();
if ($edit['uid'] == $user->uid) {
if ($edit['uid'] === $user->uid) { // '===' because we want to modify anonymous users too
$edit['name'] = $user->name;
}