After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 495258 - User uploaded files served as text/plain ("CSS doesn't work")
User uploaded files served as text/plain ("CSS doesn't work")
Status: RESOLVED FIXED
Product: website
Classification: Infrastructure
Component: blogs.gnome.org
current
Other Linux
: Normal normal
: ---
Assigned To: Jeff Waugh
Blogs Website Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-11-09 11:24 UTC by Jeff Waugh
Modified: 2007-11-11 03:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jeff Waugh 2007-11-09 11:24:05 UTC
As of the upgrade to WordPress MU 1.3, user uploaded files are dynamically served with the content-type "text/plain", which most visibly manifests in CSS not working in sane browsers like Firefox.
Comment 1 Jeff Waugh 2007-11-09 11:30:47 UTC
HEAD /files/custom.css HTTP/1.0
Host: blogs.gnome.org

HTTP/1.1 200 OK
Date: Fri, 09 Nov 2007 11:30:12 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Content-Length: 442
Last-Modified: Thu, 08 Nov 2007 08:56:41 GMT
ETag: "4135eb983d80d1fee7d7f3788a0f1354"
Expires: Sun, 09 Jan 2011 21:16:56 GMT
Connection: close
Content-Type: text/plain; charset=UTF-8
Comment 2 Jeff Waugh 2007-11-09 11:31:58 UTC
HEAD /files/2007/06/pb2wp-done.png HTTP/1.0
Host: blogs.gnome.org

HTTP/1.1 200 OK
Date: Fri, 09 Nov 2007 11:31:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Content-Length: 15032
Last-Modified: Mon, 11 Jun 2007 16:39:21 GMT
ETag: "a4eaab92b1f7d28a9805d4d72c8284bd"
Expires: Sun, 09 Jan 2011 21:18:15 GMT
Connection: close
Content-Type: text/plain; charset=UTF-8
Comment 3 Jeff Waugh 2007-11-10 03:26:46 UTC
Filed upstream: http://trac.mu.wordpress.org/ticket/496
Comment 4 Jeff Waugh 2007-11-11 03:56:04 UTC
This happened as a result of a recent change in WPMU, which added mime_content_type to the methods of determining the content-type for uploaded files. I've mentioned this in the upstream bug and commented it out locally for now (specifically so that we'll get a conflict when merging next time).