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

Function validate_config_vars() improperly validates multibyte strings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.9-RC1
    • 3.0.8, 3.0.9-RC1
    • ACP
    • None

      Function validate_config_vars() (adm/index.php) improperly validates multibyte strings.
      This leads to, for example, incorrect validation of site description length when, say, ~244 unicode characters are entered.
      The cause is use of strlen() instead of utf8_strlen() here:

      			case 'string':
      				$length = strlen($cfg_array[$config_name]);

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

              Created:
              Updated:
              Resolved: