Re: cvs: phpweb / mirror-info.php

From: Date: Thu, 14 Aug 2003 14:03:36 +0000
Subject: Re: cvs: phpweb / mirror-info.php
References: 1 2  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-20296@lists.php.net to get a copy of this message
+header("Content-type: text/plain;charset=ISO-8859-1");
I think it would be better to insert whitespace before charset. Content-type: text/plain; charset=ISO-8859-1 And same for include/layout.inc new config() array headers. <URL: http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2068.html#sec-14.18 > <URL: http://www.w3.org/International/O-HTTP-charset >
This shows, that the ";" should stand alone, right after the token, without preceding whitespace: http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2068.html#sec-3.7 And on page 16 it is explicitly stated that tokens should not contain whitespace (SP). BTW in the text there is only a rule that WS should not be between the content type and subtype, and between the attribute name and value. Otherwise WS is not defined in the text. So strictly following the standard we should remove the space between Content-type: and text/plain as far as I read the text :) Goba

« previous php.mirrors (#20296) next »