[bugs] [Bug 1156] Changed - wrong content type in css.php.

bugs at bugs.horde.org bugs at bugs.horde.org
Wed Feb 5 19:31:53 PST 2003


http://bugs.horde.org/show_bug.cgi?id=1156

*** shadow/1156	Sat Jan 25 19:48:20 2003
--- shadow/1156.tmp.21255	Wed Feb  5 19:31:53 2003
***************
*** 27,29 ****
--- 27,103 ----
  
  ------- Additional Comments From tlb at rapanden.dk  01/25/03 19:48 -------
  All, I would think, what does the CVS say?
+ 
+ ------- Additional Comments From tlb at rapanden.dk  02/05/03 19:31 -------
+ Come on people this is not a big stability breaking patch, it's a one line fix
+ for something that apparently is a problem with newer apache servers.   
+ 
+ As written in the RFC this "Content-Type: text/css" should be interpreted as
+ "Content-Type: text/css; charset=ISO-8859-1" by 
+ any HTTP 1.0/1.1 software, but it's not by newer version of apache and it's
+ changed to "Content-Type: text/html; charset=iso-8859-15" there by breaking
+ support for standard compliant Mozilla/Netscape 7.0 and making any CSS used by
+ horde non functional. 
+ 
+ Please fix it so i don't have to do it every time i update my horde installation.
+ 
+ Do i really need a 3 page bug rapport for a one line bug fix?
+ 
+ /Troels.
+ 
+ 
+ 
+ http://www.jorendorff.com/articles/unicode/unicode-http.html
+ 
+ and
+ 
+ ftp://ftp.isi.edu/in-notes/rfc2616.txt
+ 
+ 3.4.1 Missing Charset
+ 
+    Some HTTP/1.0 software has interpreted a Content-Type header without
+    charset parameter incorrectly to mean "recipient should guess."
+    Senders wishing to defeat this behavior MAY include a charset
+    parameter even when the charset is ISO-8859-1 and SHOULD do so when
+    it is known that it will not confuse the recipient.
+ 
+    Unfortunately, some older HTTP/1.0 clients did not deal properly with
+    an explicit charset parameter. HTTP/1.1 recipients MUST respect the
+    charset label provided by the sender; and those user agents that have
+    a provision to "guess" a charset MUST use the charset from the
+ 
+ and
+ 
+ test.php:
+ <?
+ header('Content-Type: text/css');
+ 
+ ?>
+ 
+ [tlb at tlb tlb]$ wget -O - -d http://tlb.rapanden.dk/test.php
+ DEBUG output created by Wget 1.8.2 on linux-gnu.
+ 
+ --00:14:54--  http://tlb.rapanden.dk/test.php
+            => `-'
+ Resolving tlb.rapanden.dk... done.
+ Caching tlb.rapanden.dk => 195.249.214.150
+ Connecting to tlb.rapanden.dk[195.249.214.150]:80... connected.
+ Created socket 3.
+ Releasing 0x80830e8 (new refcount 1).
+ ---request begin---
+ GET /test.php HTTP/1.0
+ User-Agent: Wget/1.8.2
+ Host: tlb.rapanden.dk
+ Accept: */*
+ Connection: Keep-Alive
+ 
+ ---request end---
+ HTTP request sent, awaiting response... HTTP/1.1 200 OK
+ Date: Wed, 05 Feb 2003 23:13:26 GMT
+ Server: Apache-AdvancedExtranetServer/1.3.26 (Mandrake Linux/6.1mdk) PHP/4.2.3
+ Vary: Host
+ X-Powered-By: PHP/4.2.3
+ Connection: close
+ Content-Type: text/html; charset=iso-8859-15
+ Length: unspecified [text/html]
+ 


More information about the bugs mailing list