|
From: | Zongzhen Zhang |
Subject: | [bug-cgicc] cgicc can not parse the posted form with a different charset |
Date: | Thu, 27 Sep 2007 16:06:22 +0800 |
Dear Sir,
I found a problem that the Cgicc can not parse the submitted
form correctly.
My test case is:
cgicc version: cgicc-3.2.4. I download the source code and
configure-make-make-install.
OS verion: Fedora 7 64bit.
I tested the same case under Debian( the cgicc package is
installed automatically.) and can pass the test case.
Finally I found out that my post request with an
"application/x-www-form-urlencoded; charset=UTF-8\r\n"
Content-Type.
and I changedthe source code of file Cgicc.cpp and
can pass the test case.
355 // Standard content type =
application/x-www-form-urlencoded
356 // It may not be explicitly specified 357 print_error("content_type:%s\n",content_type.c_str()); 358 print_error("standard_type:%s\n",standard_type.c_str()); 359 if(true == content_type.empty() 360 || stringsAreEqual(content_type, standard_type,standard_type.length())) { 361 std::string name, value; 362 std::string::size_type pos; 363 std::string::size_type oldPos = 0; 364 The post request is emited by yahoo ajax library
yul.
It may be not a bug and I don't know my solution is suitable
for most cases.
Best regards,
Zongzhen Zhang
|
[Prev in Thread] | Current Thread | [Next in Thread] |