diff options
author | Pixel <Pixel> | 2001-12-20 21:27:49 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-12-20 21:27:49 +0000 |
commit | 0562cba38dddc4bbf33b727245f6efab20eb9dac (patch) | |
tree | 4b585ed87addbd0ece8f6e5ecc12d050d327ab80 | |
parent | 2a2d8318c3a4dab869dfbebb3963a6c7dbd96f24 (diff) |
Bugfix on GET variables
-rw-r--r-- | lib/HttpServ.cc | 7 |
1 files changed, 4 insertions, 3 deletions
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; |