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
- assignee changed to: "nijtmans"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nijtmans"
- subsystem changed to: "29. http Package"
- title changed to:
URl checking too strict when using multiple question marks
- type changed to: "Bug"