Make WordPress Core

Ticket #6992: 6992-php4.diff

File 6992-php4.diff, 590 bytes (added by regulatethis, 16 years ago)

New patch, using html_entity_decode in the wp_get_current_commenter()

  • wp-includes/comment.php

     
    843843
    844844       $comment_author = '';
    845845       if ( isset($_COOKIE['comment_author_'.COOKIEHASH]) )
    846                $comment_author = $_COOKIE['comment_author_'.COOKIEHASH];
     846               $comment_author = html_entity_decode($_COOKIE['comment_author_'.COOKIEHASH], ENT_QUOTES);
    847847
    848848       $comment_author_email = '';
    849849       if ( isset($_COOKIE['comment_author_email_'.COOKIEHASH]) )