You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/04/26 05:49:01 UTC

DO NOT REPLY [Bug 19339] - stdin on CGI opened in text mode

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19339>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19339

stdin on CGI opened in text mode

andrew_walduck@hotmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Normal                      |Critical
           Priority|Other                       |High



------- Additional Comments From andrew_walduck@hotmail.com  2003-04-26 03:49 -------
I've changed the priority to high. There is no real working around on the cgi 
side. The only work around is on the server. The cgi-bin stdin (VC++ 5.0) is 
replacing 0x0D 0x0A sequences with 0x0A only. The only work around is to byte 
stuff the entire data stream being sent to the client during a form upload of 
type multipart/form-data but use the original CONTENT_LENGTH. The server needs 
to look at the CONTENT_TYPE environment variable and if it is multipart/form-
data convert all 0x0D 0x0A sequences to 0x0D 0x0D 0x0A. A configuration flag 
will need to be added to turn this behaviour on and off as different compilers 
may read stdin in binary vs text mode.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org