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

Do not write ?> into config.php to avoid whitespace output

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.11-RC1
    • 3.0.10
    • Viewing posts
    • None

      Hi,

      I do not know if we can consider this as a bug but it could be interesting to fix it. The problem is when you have a blank line (\n) after the "?>" in the config.php file, the download/file does not display avatars anymore because a problem of character.

      How to reproduce:

      Just add a blank line after the end of php script "?>" and reload an avatar display.

      Examples:

      With a blank line: (image) http://community.olympe.in/download/file1.php?avatar=121_1337297805.png&header=yes
      With blan line : (binary) http://community.olympe.in/download/file1.php?avatar=121_1337297805.png

      Without blank line (image) http://community.olympe.in/download/file2.php?avatar=121_1337297805.png&header=yes
      Without blank line (binary) http://community.olympe.in/download/file2.php?avatar=121_1337297805.png

      Web observe a small difference between the two binaries at the end (just on char).

      Best regards.
      Sam

            bantu Andreas Fischer [X] (Inactive)
            olympe olympe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: