Make WordPress Core

Ticket #4723: 4723.patch

File 4723.patch, 533 bytes (added by xknown, 17 years ago)

patch against trunk

  • wp-includes/kses.php

     
    318318        # Is there a closing XHTML slash at the end of the attributes?
    319319
    320320        $xhtml_slash = '';
    321         if (preg_match('%\s/\s*$%', $attr))
     321        if (preg_match('%(\s?)/\s*$%', $attr, $match)) {
    322322                $xhtml_slash = ' /';
     323                if ( '' == $match[1] )
     324                        $attr = rtrim($attr, '/ ') . ' /';
     325        }
    323326
    324327        # Are any attributes allowed at all for this element?
    325328