Unicode::isSimple() problem

Created on 18 March 2021, over 3 years ago
Updated 13 September 2024, 2 months ago

Problem/Motivation

  public static function isSimple($string, $length = 250, $allowed_tags = NULL, &$html = FALSE) {
    ...
    if (!isset($strings[$string_clone])) {
      $plain_string = strip_tags($string_clone);
      $simple = TRUE;
      if ($allowed_tags !== FALSE) {
        $filtered_string = Xss::filter($string_clone, $allowed_tags);
        $html = $filtered_string !== $plain_string;
        ...
      }
      ...
    }
    ...
  }

So if isset($strings[$string_clone]) $html will not get a correct value.

🐛 Bug report
Status

Closed: won't fix

Version

3.0

Component

Code

Created by

🇷🇸Serbia super_romeo Belgrade

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024