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

Allowed schemes in links and similar fields should check field content

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2.10-RC1, 3.3.1-RC1
    • 3.2.9, 3.3.0
    • ACP
    • None

      I encountered this bug working with a client and fixed it with the solution in the last post of this topic:

      https://www.phpbb.com/community/viewtopic.php?p=15011511

      I suggest that the field allowed_schemes_links and similar one line fields in the ACP where comma-delimited lists are expected should do some clean up before saving the field in the database, or interpreting it when read. If a comma is in the last position, it apparently gets interpreted incorrectly. I'm guessing a PHP explode statement is executed, and content after the last comma is read into an array, and that's tripping up the TextFormatter library, causing the error.

            Marc Marc
            MarkDHamill MarkDHamill [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: