From 0562cba38dddc4bbf33b727245f6efab20eb9dac Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 20 Dec 2001 21:27:49 +0000 Subject: Bugfix on GET variables --- lib/HttpServ.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/HttpServ.cc') diff --git a/lib/HttpServ.cc b/lib/HttpServ.cc index 4f225d2..3e75743 100644 --- a/lib/HttpServ.cc +++ b/lib/HttpServ.cc @@ -273,20 +273,21 @@ bool ProcessRequest::ParseUri(String & file, String & domain, String & gvars, Ha ssize_t sppos; *s >> t; -// cerr << "Read Request (1): " << t << endl; + cerr << "Read Request (1): " << t << endl; int IPos = t.strchr('?'); gvars = ""; if (IPos >= 0) { + int HPos = t.strchr(' ', IPos); char * sdup = t.strdup(0, IPos - 1); - gvars = t.extract(IPos + 1); + gvars = t.extract(IPos + 1, HPos - 1); t = sdup; free(sdup); } -// cerr << "New request: " << t << ", gvars = " << gvars << endl; + cerr << "New request: " << t << ", gvars = " << gvars << endl; bad = false; -- cgit v1.2.3