Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10198

Function validate_config_vars() improperly validates multibyte strings

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.0.8, 3.0.9-RC1
    • 3.0.9-RC1
    • ACP
    • None

    Description

      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]);

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: