to fix SRU POST which does not have ? in start of URI string in
HTTP body.
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: srwutil.c,v 1.29 2005-08-22 20:34:21 adam Exp $
+ * $Id: srwutil.c,v 1.30 2005-09-12 09:14:57 adam Exp $
int no = 2;
const char *cp;
*name = 0;
int no = 2;
const char *cp;
*name = 0;
+ if (*path == '?')
+ path++;
+ if (!*path)
cp = path;
while ((cp = strchr(cp, '&')))
{
cp++;
no++;
}
cp = path;
while ((cp = strchr(cp, '&')))
{
cp++;
no++;
}
- *name = odr_malloc(o, no * sizeof(char**));
- *val = odr_malloc(o, no * sizeof(char**));
+ *name = odr_malloc(o, no * sizeof(char*));
+ *val = odr_malloc(o, no * sizeof(char*));
for (no = 0; *path; no++)
{
for (no = 0; *path; no++)
{