Make WordPress Core

Ticket #34105: 34105.diff

File 34105.diff, 448 bytes (added by batmoo, 8 years ago)
  • src/wp-includes/kses.php

     
    776776        }
    777777        // Allow HTML comments
    778778
    779         if (!preg_match('%^<\s*(/\s*)?([a-zA-Z0-9]+)([^>]*)>?$%', $string, $matches))
     779        if (!preg_match('%^<\s*(/\s*)?([a-zA-Z0-9-]+)([^>]*)>?$%', $string, $matches))
    780780                return '';
    781781        // It's seriously malformed
    782782