Make WordPress Core


Ignore:
Timestamp:
12/21/2006 10:10:04 AM (19 years ago)
Author:
markjaquith
Message:

new function for escaping within attributes: attribute_escape()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r4631 r4656  
    156156        $comment_author = apply_filters('pre_comment_author_name', $_COOKIE['comment_author_'.COOKIEHASH]);
    157157        $comment_author = stripslashes($comment_author);
    158         $comment_author = wp_specialchars($comment_author, true);
     158        $comment_author = attribute_escape($comment_author);
    159159        $_COOKIE['comment_author_'.COOKIEHASH] = $comment_author;
    160160    }
     
    163163        $comment_author_email = apply_filters('pre_comment_author_email', $_COOKIE['comment_author_email_'.COOKIEHASH]);
    164164        $comment_author_email = stripslashes($comment_author_email);
    165         $comment_author_email = wp_specialchars($comment_author_email, true);
     165        $comment_author_email = attribute_escape($comment_author_email);
    166166        $_COOKIE['comment_author_email_'.COOKIEHASH] = $comment_author_email;
    167167    }
     
    170170        $comment_author_url = apply_filters('pre_comment_author_url', $_COOKIE['comment_author_url_'.COOKIEHASH]);
    171171        $comment_author_url = stripslashes($comment_author_url);
    172         $comment_author_url = wp_specialchars($comment_author_url, true);
     172        $comment_author_url = attribute_escape($comment_author_url);
    173173        $_COOKIE['comment_author_url_'.COOKIEHASH] = $comment_author_url;
    174174    }
Note: See TracChangeset for help on using the changeset viewer.