Make WordPress Core

Ticket #44278: convert_smilies_regex_v2.patch

File convert_smilies_regex_v2.patch, 597 bytes (added by Andi Dittrich, 7 years ago)

removed repetition quantifier (regex should be ungreedy)

  • wp-includes/formatting.php

     
    31633163                        $content = $textarr[ $i ];
    31643164
    31653165                        // If we're in an ignore block, wait until we find its closing tag
    3166                         if ( '' == $ignore_block_element && preg_match( '/^<(' . $tags_to_ignore . ')>/', $content, $matches ) ) {
     3166                        if ( '' == $ignore_block_element && preg_match( '/^<(' . $tags_to_ignore . ').*>/U', $content, $matches ) ) {
    31673167                                $ignore_block_element = $matches[1];
    31683168                        }
    31693169