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

Function validate_config_vars() improperly validates multibyte strings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.8, 3.0.9-RC1
    • Fix Version/s: 3.0.9-RC1
    • Component/s: ACP
    • Labels:
      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

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

              Dates

              Created:
              Updated:
              Resolved: