WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/13/2016 02:04:10 PM (4 years ago)
Author:
rachelbaker
Message:

Comments: Include comment_content with html and without in blacklist_keys comparison.

After [38047], also include the comment_content with html in the preg_match against blacklist keys to match urls.

Props ocean90.
Fixes #37208.

File:
1 edited

Legend:

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

    r38047 r38048  
    10771077            || preg_match($pattern, $email)
    10781078            || preg_match($pattern, $url)
     1079            || preg_match($pattern, $comment)
    10791080            || preg_match($pattern, $comment_without_html)
    10801081            || preg_match($pattern, $user_ip)
Note: See TracChangeset for help on using the changeset viewer.