You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Silver CHEN <sa...@mail.pchome.com.tw> on 1997/11/15 15:57:59 UTC

general/1421: the 'get' method for cgi will lose 8-bit data in some cases

>Number:         1421
>Category:       general
>Synopsis:       the 'get' method for cgi will lose 8-bit data in some cases
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Nov 15 08:10:00 PST 1997
>Last-Modified:
>Originator:     sansil@mail.pchome.com.tw
>Organization:
apache
>Release:        1.2.4
>Environment:
SunOS ultra2 5.6 Generic sun4u sparc SUNW,Ultra-2
>Description:
the query string sent to the cgi program is corruptted in some cases, eg:

http://host/cgi.pl?fcat=�q�l�l��&ftitle=pega

but the cgi.pl will get 'fcat=�q�l�l' only, and the other parts are gone

the problem didn't exist on the linux 2.2.27
>How-To-Repeat:
try:

  http://ultra2.pchome.com.tw/cgi-bin/sansil/dbshow.pl?fcat=�q�l�l�󦬵o�n��&&&

  or

  http://ultra2.pchome.com.tw/cgi-bin/sansil/dbshow.pl?fcat=Windows+�ù��O�@�{��&&&

  you will get a error message, that means the query string passed to cgi is wrong!
>Fix:
I don't know, but 1.2.0 have the same problem
so I suspect this will be a OS dependent problem(?)

-> should I change all the query into plain 7-bit? is this a restriction for cgi
   or not? please reply if possible

thanks for the help%2
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]