Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-11-15
22:58
Bump to http 2.5.2 to cover changing rules in [http::mapReply] [1182373] check-in: ba3940f25f user: dgp tags: trunk
22:58
Bump to http 2.5.2 to cover changing rules in [http::mapReply] [1182373] check-in: 20ae8f3e06 user: dgp tags: core-8-4-branch
2005-10-05
12:04 • Closed ticket [1182373fff]: Too eager percent-encoding plus 7 other changes artifact: f4f114690f user: hobbs
2005-04-13
16:51 • New ticket [1182373fff]. artifact: ac98c787d8 user: kaitzschu

Too eager percent-encoding

Closed / Fixed1182373fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 21 years ago
Descriptionplain2005-04-13 16:51:22
Current behaviour:

% http::mapReply "._~-"
%2e%5f%7e%2d


Background:

RFC3986 Section 2.3:
"-- percent-encoded octets in the ranges of ALPHA
(%41-%5A and %61-%7A), DIGIT (%30-%39), hyphen (%2D),
period (%2E), underscore (%5F), or tilde (%7E) should
not be created by URI producers --"


Desired behaviour:

% http::mapReply "._~-"
._~-


Possible fix:

From http.tcl in procedure http::init line
if {![string match {[a-zA-Z0-9]} $c]} {
should be changed to
if {![string match {[-a-zA-Z0-9~._]} $c]} {
unless there is some character set difficulty unknown
to me.
hobbsplain2005-10-05 12:04:35
Logged In: YES 
user_id=72656

Fixed in 8.4.12 and 8.5a4.
Log in (anonymous is fine) to add a comment.