- Patch #87755 by kjartan: anonymous comments can't save names.
parent
2378379131
commit
6e8a0a1602
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue