Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-14801

Search highlight option doesn't always highlight unicode strings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1.11-RC1
    • 3.1.10-RC1, 3.2.0-dev, 4.0.0-a1
    • Search
    • None

      The regular expressions used for search results highlighting here https://github.com/phpbb/phpbb/blob/3.1.x/phpBB/search.php#L1063 and here https://github.com/phpbb/phpbb/blob/3.1.x/phpBB/search.php#L1146-L1147 don't use unicode options. This leads to highlighting may miss unicode strings as \w sequence recognizes only characters with codes less than 128 via a lookup table.
      Adding u option should make \w using Unicode properties to determine character types.

            nicofuma nicofuma
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: