projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50e691d
)
URL decode variable names. Not just values. If not, things will break
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 26 Jun 2007 13:01:07 +0000
(13:01 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 26 Jun 2007 13:01:07 +0000
(13:01 +0000)
badly if a target includes a blank in the database name.
src/http.c
patch
|
blob
|
history
diff --git
a/src/http.c
b/src/http.c
index
a9a9054
..
9b9d438
100644
(file)
--- a/
src/http.c
+++ b/
src/http.c
@@
-1,4
+1,4
@@
-/* $Id: http.c,v 1.34 2007-06-15 19:35:17 adam Exp $
+/* $Id: http.c,v 1.35 2007-06-26 13:01:07 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
@@
-421,6
+421,7
@@
struct http_request *http_parse_request(struct http_channel *c,
a = nmem_malloc(c->nmem, sizeof(struct http_argument));
*(equal++) = '\0';
a->name = nmem_strdup(c->nmem, p2);
+ urldecode(a->name, a->name);
urldecode(equal, equal);
a->value = nmem_strdup(c->nmem, equal);
a->next = r->arguments;