commit | 726e879614a7c0e2afa2e37f163caeaee46fe0be | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@src.gnome.org> | Sun Jan 30 20:04:29 2000 +0000 |
committer | Daniel Veillard <veillard@src.gnome.org> | Sun Jan 30 20:04:29 2000 +0000 |
tree | a42c09524dd76a55f312fbccc75bbe5a6c9d0de2 | |
parent | 3bde3e25e20c87a792aa545de6e4d058bdf92ffb [diff] [blame] |
Fixed '#' and '?' stripping when processing URLs, Daniel.
diff --git a/nanohttp.c b/nanohttp.c index e2dfda3..f3e4827 100644 --- a/nanohttp.c +++ b/nanohttp.c
@@ -214,12 +214,10 @@ if (*cur == 0) ctxt->path = xmlMemStrdup("/"); else { + index = 0; buf[index] = 0; - while (*cur != 0) { - if ((cur[0] == '#') || (cur[0] == '?')) - break; + while (*cur != 0) buf[index++] = *cur++; - } buf[index] = 0; ctxt->path = xmlMemStrdup(buf); }