Re: [VCARDDAV] [calsify] Escaping dquote in a parameter value
Jack <jack@jackpot.uk.net> Wed, 20 June 2012 06:56 UTC
Return-Path: <jack@jackpot.uk.net>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8389C21F86E4; Tue, 19 Jun 2012 23:56:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C3Ba4GQ8FIJN; Tue, 19 Jun 2012 23:56:55 -0700 (PDT)
Received: from saraha.jackpot.uk.net (saraha.jackpot.uk.net [87.194.213.229]) by ietfa.amsl.com (Postfix) with ESMTP id DE74121F86DE; Tue, 19 Jun 2012 23:56:54 -0700 (PDT)
Received: from [192.168.1.10] (unknown [192.168.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jack) by saraha.jackpot.uk.net (Postfix) with ESMTPSA id 28EF2A9004F; Wed, 20 Jun 2012 07:56:52 +0100 (BST)
Message-ID: <4FE1742C.1030806@jackpot.uk.net>
Date: Wed, 20 Jun 2012 07:56:44 +0100
From: Jack <jack@jackpot.uk.net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
MIME-Version: 1.0
To: Cyrus Daboo <cyrus@daboo.name>
References: <50174924F12AC68AE58D5384@cyrus.local>
In-Reply-To: <50174924F12AC68AE58D5384@cyrus.local>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Wed, 20 Jun 2012 06:59:39 -0700
Cc: Calsify <calsify@ietf.org>, vcarddav@ietf.org
Subject: Re: [VCARDDAV] [calsify] Escaping dquote in a parameter value
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Jun 2012 06:56:55 -0000
On 20/06/2012 03:56, Cyrus Daboo wrote: > Hi, As I am sure most people are aware, a double-quote character is > forbidden to appear in a parameter value in both vCard and iCalendar. > Yet there is a need to preserve double-quotes in a parameter value. > So I am going to propose an extension to the specifications whereby a > new escape mechanism is introduced solely for the purpose of allowing > d-quote in a parameter value in a backwards compatible manner. > > My proposal is to use ^ (0x5e) as an escape character, with only the > following two sequences allowed: > > ^^ - represents a single ^ character ^' - represents a single d-quote > character > > I ruled out use of \ because some parsers erroneously eat that, and > it would also be tempting to use \" which is definitely not possible > because the dquote cannot appear. However "\" is already specified in RFC2445 as the escape character in TEXT (4.3.11). That section specifies that a DQUOTE is not to appear in a TEXT; but it also specifies that a ";" shall not appear in a TEXT, and then goes on to specify that a ";" must be escaped thus: "\;". So I read it as saying (as clearly as anything is said in that document) that a DQUOTE should be escaped thus: "\"". -- Jack.
- [VCARDDAV] Escaping dquote in a parameter value Cyrus Daboo
- Re: [VCARDDAV] [calsify] Escaping dquote in a par… Cyrus Daboo
- Re: [VCARDDAV] Escaping dquote in a parameter val… Simon Perreault
- Re: [VCARDDAV] [calsify] Escaping dquote in a par… Jack
- Re: [VCARDDAV] Escaping dquote in a parameter val… Cyrus Daboo