Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A very simple patch to fix this.
Comment | File | Size | Author |
---|---|---|---|
#3 | 816246-D6.patch | 1.68 KB | amateescu |
token.patch | 774 bytes | moritzz | |
Comments
Comment #2
Dave ReidAnonymous users can fill out their own 'name' information which is stored there, so this would overwrite those values. It should probably check if $comment->name itself is empty, not $comment->uid. This will need to be re-patched against the latest code, 6.x-1.x and the token comment test adjusted.
Comment #3
amateescu CreditAttribution: amateescu commentedI encountered this bug today so here's a fixed and updated patch.