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

Count HTML entities as single characters in Custom Profile fields

    Details

      Description

      As per Post by amplifiedshock

      When a custom profile field that allows up to a maximum of 20 characters and a user inputs "<>1234567<>" an error:

      The field "***" is too long, a maximum of 20 characters is allowed.

      Is returned.

        Issue Links

          Activity

          Hide
          Kellanved Kellanved [X] (Inactive) added a comment -

          This is due to the translation of <>& etc to HTML entities.

          Show
          Kellanved Kellanved [X] (Inactive) added a comment - This is due to the translation of <>& etc to HTML entities.
          Hide
          mixstar mixstar added a comment -

          I've tested this as per the original post:

          ACP> Custom profile fields:
          Create a new field ('test' in this case)
          Publicly display profile field: yes
          Display in user control panel: yes

          Profile type specific options:
          Length of input box: 20
          Minimum number of characters: 0
          Maximum number of characters: 20
          Field validation: Any character

          If the user then goes in to the UCP> Profile

          And types this in to the text box: <>12345<>

          Clicking submit returns:

          The field “test” is too long, a maximum of 20 characters is allowed.

          Whilst I understand the reasons for this not being a bug surely the "Any character" setting should mean any character, '<>' are standard keyboard characters and should surely be allowed without returning an error due to length? If not maybe a short note explaining that using non-alphanumeric characters MAY return an error in the create a new field area when using the "Any character" setting.

          Show
          mixstar mixstar added a comment - I've tested this as per the original post: ACP> Custom profile fields: Create a new field ('test' in this case) Publicly display profile field: yes Display in user control panel: yes Profile type specific options: Length of input box: 20 Minimum number of characters: 0 Maximum number of characters: 20 Field validation: Any character If the user then goes in to the UCP> Profile And types this in to the text box: <>12345<> Clicking submit returns: The field “test” is too long, a maximum of 20 characters is allowed. Whilst I understand the reasons for this not being a bug surely the "Any character" setting should mean any character, '<>' are standard keyboard characters and should surely be allowed without returning an error due to length? If not maybe a short note explaining that using non-alphanumeric characters MAY return an error in the create a new field area when using the "Any character" setting.

            People

            • Assignee:
              nickvergessen Joas Schilling
              Reporter:
              mixstar mixstar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development