WordPress.org

Make WordPress Core

Ticket #2130: kses.php.diff

File kses.php.diff, 468 bytes (added by tsimmons, 15 years ago)

Proposed patch

  • wp-includes/kses.php

     
    9898                return '>';
    9999        # It matched a ">" character
    100100
     101        if (preg_match('%^<!--[^>-]+-->$%', $string))
     102                return $string;
     103        # Allow HTML comments
     104
    101105        if (!preg_match('%^<\s*(/\s*)?([a-zA-Z0-9]+)([^>]*)>?$%', $string, $matches))
    102106                return '';
    103107        # It's seriously malformed