Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#31 closed design (fixed)

qdtext BNF

Reported by: mnot@… Owned by: julian.reschke@…
Priority: Milestone: 01
Component: p1-messaging Severity:
Keywords: Cc:


RFC 2616 reads:

A string of text is parsed as a single word if it is quoted using double-quote marks.

quoted-string  = ( <"> *(qdtext | quoted-pair ) <"> )
qdtext         = <any TEXT except <">>

The backslash character ("\") MAY be used as a single-character quoting mechanism only within quoted-string and comment constructs.

quoted-pair    = "\" CHAR

I wrote a regular expression based on the RFC 2616 definition, and that allows "foo\" as a quoted-string. That's not intended, is it?

Change History (5)

comment:1 Changed 15 years ago by mnot@…

I think the qdtext syntax should say this instead:

qdtext         = <any TEXT except <"> and "\">

(It might also want to say "excluding" instead of "except", for consistency with ctext a few lines earlier).

comment:2 Changed 15 years ago by julian.reschke@…

  • Component set to messaging
  • Milestone set to 01
  • Owner set to julian.reschke@…

comment:3 Changed 15 years ago by julian.reschke@…

  • Resolution set to fixed
  • Status changed from new to closed

comment:4 Changed 15 years ago by julian.reschke@…

Fixed in [128]

comment:5 Changed 15 years ago by fielding@…

  • version set to 00-draft
Note: See TracTickets for help on using tickets.