Opened 14 years ago
Closed 14 years ago
#17256 closed defect (bug) (fixed)
Image-error in Multisite (subdir)
Reported by: | dvwallin | Owned by: | ryan |
---|---|---|---|
Milestone: | 3.2 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Multisite | Keywords: | has-patch |
Focuses: | Cc: |
Description
When setting up a multisite-network using subdirectory-method in Wordpress 3.1.x images get the wrong encoding and doesn't show up anywhere.
This is due to the header-setting being wrong in ms-files.php where, to solve the issue, you simply replace
header( 'Content-type: ' . $mimetype ); always send this
with
header("Content-Type: $mimetype"); always send this
Attachments (1)
Change History (9)
#4
@
14 years ago
Not at all. Been quite detailed in the tests. Changing that single line made the image-handling work throughout the multisite-setup. But i wont push for the patch. I'm using it and it works for me.
#5
@
14 years ago
The difference isn't in the concatenation method, it's the capitalisation of 'Type'.
I couldn't reproduce the issue, but some searching does suggest that some badly written applications may expect Content-Type
only.
Those two lines of code are equivalent. The resulting string that's sent to the header() function is the same.
To test: