Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 174ef65a9b1b2891cea484aab9dacc635bfcebc9
Ticket: 2891171fffffffffffffffffffffffffffffffff
URl checking too strict when using multiple question marks
User & Date: nijtmans on 2009-11-03 19:14:33
Changes

  1. icomment:
    So, I am glad I brought this up. So many reactions. Thanks all!
    
    Answerings: Yes Firefox and other browsers behave the same
    way. No browser does automatic URL-encoding. They all
    pas through the exact URL given.
    
    No, I cannot get the server fixed. RFC 1738 is
    indeed rather misleading in the interpretation
    of what is allowed in the <query> part of an URL.
    
    Lucky enough, RFC 3986 has a much clearer
    description, which convinced me that multiple
    question marks are allowed in a quiery. Citing:
    this RFC:
    
    ===================================
    3.4.  Query
    
       The query component contains non-hierarchical data that, along with
       data in the path component (Section 3.3), serves to identify a
       resource within the scope of the URI's scheme and naming authority
       (if any).  The query component is indicated by the first question
       mark ("?") character and terminated by a number sign ("#") character
       or by the end of the URI.
    
          query       = *( pchar / "/" / "?" )
    
       The characters slash ("/") and question mark ("?") may represent data
       within the query component.  Beware that some older, erroneous
       implementations may not handle such data correctly when it is used as
       the base URI for relative references (Section 5.1), apparently
       because they fail to distinguish query data from path data when
       looking for hierarchical separators.  However, as query components
       are often used to carry identifying information in the form of
       "key=value" pairs and one frequently used value is a reference to
       another URI, it is sometimes better for usability to avoid percent-
       encoding those characters.
    
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. username: "nijtmans"