Skip to content
Tcl Source Code Artifact [03e08c37f2]
Login

Artifact [03e08c37f2]

Artifact 03e08c37f24f815565b7fd00f9c3dfdbd42eb7d5:

Ticket change [03e08c37f2] - New ticket [2914492fffffffff|2914492fff] <i>formatQuery incorrectly encodes newlines</i>. by dvrsn on 2009-12-15 00:44:42.
D 2009-12-15T00:44:42
J assignee patthoyts
J cmimetype text/plain
J comment http::formatQuery\sis\sused\sfor\sencoding\sname-value\spairs\sfor\ssubmission\sto\sforms.\s\sIt\shandles\spercent-escaping\sfor\sreserved\scharacters\sas\sspecified\sin\sRFC3986\sand\sits\spredecessors.\s\sHowever,\sit\salso\sspecially\shandles\snewlines,\schanging\sthem\sinto\sCRNL\spairs.\s\sThis\sbehavior\sis\sincorrect\sfor\sa\sfew\sreasons.\n1.\sthe\sline\sbreak\s->\sCRNL\sbehavior\sis\sspecified\sin\sthe\sHTML\sspecification,\snot\sthe\sURI\sspecification,\sand\sis\sspecifically\sintended\sfor\sform\sdata\s(i.e.,\sa\shtml\stextarea),\sand\sit\smentions\s"line\sbreaks"\snot\s"newlines".\n2.\sthe\sbehavior\smakes\sit\simpossible\sto\scorrectly\supload\sa\sfile\sas\sform\sPOST\sdata\s(without\sgoing\sinto\smultipart\smadness)\n3.\sMany\sother\scommon\spackages\s(e.g.,\sLWP,\scurl)\sdo\sNOT\sdo\sthis\stranslation\s(ncgi\sbeing\sa\snotable\sexception)\n4.\sFew\sCGI\spackages\sundo\sthis\snewline\sencoding.\s(ncgi\sis\sno\sexception\shere)
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter dvrsn
J subsystem 29.\shttp\sPackage
J title formatQuery\sincorrectly\sencodes\snewlines
J type Bug
K 2914492fffffffffffffffffffffffffffffffff
U dvrsn
Z 97354edc619bf393bde7af9beb6b3882