Re: Chora and CVSWeb problems
| From: | Anil Madhavapeddy | Date: | Sun, 19 Aug 2001 20:57:15 +0000 |
| Subject: | Re: Chora and CVSWeb problems | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-63776@lists.php.net to get a copy of this message | ||
On Sun, Aug 19, 2001 at 11:29:18PM +0300, Stanislav Malyshev wrote:
>
> It does even worse. It tries to guess file type from the content. I hope
> somebody will invent some worm that uses this misfeature so that they
> would finally fix it...
>
Guessing the file-type from the first few magic bytes is
probably a good thing (especially in the case where other
methods have failed, and the MIME type has fallen back to
application/octet-stream or something equally unhelpful).
The bug here is that it ignores the explicit Content-Type
header instead of its own detection mechanisms, which is
clearly bad.
Anyone want to file a Microsoft bug report? :-)
Anil