Make WordPress Core


Ignore:
Timestamp:
03/14/2007 11:12:47 PM (19 years ago)
Author:
markjaquith
Message:

nonce-protect comments by users with unfiltered_html cap to prevent xsrf/xss. fixes #3973 for 2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/wp-includes/default-filters.php

    r4556 r5040  
    3131add_filter('pre_comment_author_email', 'wp_filter_kses');
    3232add_filter('pre_comment_author_url', 'wp_filter_kses');
     33
     34add_action('comment_form', 'wp_comment_form_unfiltered_html_nonce');
    3335
    3436// Default filters for these functions
Note: See TracChangeset for help on using the changeset viewer.