Menu

#452 images break when there's a newline at the end of LocalSettings.php

workingwiki
open
None
5
2013-12-04
2013-12-04
Lee Worden
No

I think it's weird that the rest of the wiki doesn't break when there's a newline after the closing ?>, but anyway it does break the raw output of Special:GetProjectFile. The newline gets inserted just before the file contents, and the Content-length in the header gets increased by one by apache. With binary image files, this makes them corrupt and undisplayable.

To do: figure out where the newline goes when serving the wiki pages, and whether I can make it go there when doing images too.

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.