Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7e9adfb7ee0d8416ad9f5fca0f3f8e6f5fed1a02
Ticket: 2914492fffffffffffffffffffffffffffffffff
formatQuery incorrectly encodes newlines
User & Date: patthoyts on 2010-02-26 08:15:01
Changes

  1. icomment:
    This is functionality that is explicitly tested for in the http package tests (see http-5.3) and has been here since the initial revision for which I have access from 1998. I have no idea how many users of tcl might be affected detrimentally by changing this but it seems likely to be a problem for some of them.
    
    The implementation here is of application/x-www-url-encoded and the specification for this form submission encoding explicitly states the \n to %0d%0a mapping. See http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1 where it states: 
    "Line breaks, as in multi-line text field values, are represented as CR LF pairs, i.e. `%0D%0A'."
    
    The implementation is therefore correctly following the specification.
    
    
  2. login: "patthoyts"
  3. mimetype: "text/plain"
  4. username: "patthoyts"