Mailing List Archive

Fwd: [Bug 2] error when a QUERY_STRING is given
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Subject: [Bug 2] error when a QUERY_STRING is given
Date: Tuesday 03 June 2003 11:25
From: bugzilla-daemon@alobbs.com

http://bugs.alobbs.com/show_bug.cgi?id=2


- ------- Additional Comments From setepo@gulic.org 2003-06-03 11:25 -------
I have been reading connection.c (0.4.4-pre5)

In line 490, I can see

cherokee_buffer_add (cnt->request, cnt->buffer->buf + begin, end-begin);

In this place, I think that it'd have to find the '?' character, and, if it
is present, sets the end to posQuestion-begin, instead of end-begin.

Afther that, it has to have a new member in cherokee_connection_t, called
(for example) queryString (or query_string, etc). If '?' is found in
request, this buffer will have the content appeared after that character. If
not, it could be NULL or an empty buffer. The function
cherokee_buffer_decode can not be called with this buffer, becasuse it will
break the query.

I can send a patch (after debug it ;-) ) or apply the changes in the (future)
CVS.

- -------------------------------------------------------

- --
Greetings, alo.
http://www.alobbs.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+3HPGVRSCNxlNnu0RAonJAKCwMrrgfCnCc65H3+7PKn16ubAtawCg0qmE
xh/nmjhOw+gH8jicDWwbZyo=
=32FH
-----END PGP SIGNATURE-----