Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8e48a465037b25c97d1c6064ce92a13651cc50da
Ticket: 2891171fffffffffffffffffffffffffffffffff
URl checking too strict when using multiple question marks
User & Date: nijtmans on 2009-11-03 10:11:14
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Trying the following requiest through IE works fine:
     
    http://165.114.214.221/getParam.cgi?AIValue_00=?
    reply: AIValue_00=28192
     
    Doing the same through TCL:
    % package require http
    2.7
    % set url http://165.114.214.221
    http://165.114.214.221
    % set reply [::http::geturl ${url}/getParam.cgi?AIValue=?]
    Unsupported URL: http://165.114.214.221/getParam.cgi?AIValue=?
    %
    
    Analisis: The following line in the URLmatcher variable:
         ( / [^\#?]* (?: \? [^\#?]* )?)? # <path> (including query)
    Checks if the <path> part of the URL contains exactly
    one question mark. According through RFC 3986 this
    is how an URL should look like, but apparently there
    are URL's that violate this. There is no reason to
    restruct URL's this way, so I think the regular
    expression should be relaxed.
    
    Suggestion: replace the mentioned line with:
          ( / [^\#]*)?                    # <path> (including query)
    should do the trick.
    
    If no-one objects, I will check this change in, in
    a few days.
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nijtmans"
  10. subsystem changed to: "29. http Package"
  11. title changed to:
    URl checking too strict when using multiple question marks
    
  12. type changed to: "Bug"