Re: [HASMAT] Parsing Content-Type

Julian Reschke <julian.reschke@gmx.de> Tue, 13 July 2010 11:04 UTC

Return-Path: <julian.reschke@gmx.de>
X-Original-To: hasmat@core3.amsl.com
Delivered-To: hasmat@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 08ADA3A68F6 for <hasmat@core3.amsl.com>; Tue, 13 Jul 2010 04:04:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.894
X-Spam-Level:
X-Spam-Status: No, score=-2.894 tagged_above=-999 required=5 tests=[AWL=-0.295, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NFe1wdQwQWcW for <hasmat@core3.amsl.com>; Tue, 13 Jul 2010 04:04:20 -0700 (PDT)
Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.23]) by core3.amsl.com (Postfix) with SMTP id B74943A67A5 for <hasmat@ietf.org>; Tue, 13 Jul 2010 04:04:19 -0700 (PDT)
Received: (qmail invoked by alias); 13 Jul 2010 11:04:26 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.113]) [217.91.35.233] by mail.gmx.net (mp001) with SMTP; 13 Jul 2010 13:04:26 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1//8oIo4dD/Fi6MRqWhw6Z3y7t87J7oy7/ha57d/e NagUkfz/6U5Sne
Message-ID: <4C3C4831.5000007@gmx.de>
Date: Tue, 13 Jul 2010 13:04:17 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.10) Gecko/20100512 Lightning/1.0b1 Thunderbird/3.0.5
MIME-Version: 1.0
To: Anne van Kesteren <annevk@opera.com>
References: <op.vfr1o4on64w2qv@annevk-t60>
In-Reply-To: <op.vfr1o4on64w2qv@annevk-t60>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Cc: hasmat@ietf.org
Subject: Re: [HASMAT] Parsing Content-Type
X-BeenThere: hasmat@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: HTTP Application Security Minus Authentication and Transport <hasmat.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hasmat>, <mailto:hasmat-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hasmat>
List-Post: <mailto:hasmat@ietf.org>
List-Help: <mailto:hasmat-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hasmat>, <mailto:hasmat-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jul 2010 11:04:21 -0000

On 13.07.2010 12:21, Anne van Kesteren wrote:
> I was wondering if http://tools.ietf.org/html/draft-abarth-mime-sniff
> should not contain the error handling rules for parsing the Content-Type
> as well. It seems potentially dangerous if one user agent were to treat
> the value "text/html;" as bogus and fallback to "text/plain" whereas
> another would treat it as "text/html".

If the *intent* was to send "text/html" then the only problem I see is 
that some recipients would see plain text.

Speaking of which: why would the fallback be "text/plain"?

If the intent was different, why send the header in the first place?

Best regards, Julian