From 4fc6e040f08c366277d3405f178c62c580c7416c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 12 Nov 2012 19:35:28 +0100 Subject: [PATCH] yaz_uri_to_array: fix check for x-form names --- src/uri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uri.c b/src/uri.c index 6db68e5..1ebb530 100644 --- a/src/uri.c +++ b/src/uri.c @@ -132,7 +132,7 @@ int yaz_uri_to_array(const char *path, ODR o, char ***name, char ***val) { cp++; no++; - while (*cp != '=') + while (*cp && *cp != '=' && *cp != '&') { /* check that x-form names looks sane */ if (*cp <= ' ' || *cp >= 127) -- 1.7.10.4