From 35d13c21c9939f2477df4ec730b11d54c94d5d0c Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Wed, 10 Dec 2008 09:28:01 +0000 Subject: [PATCH] Removed '/' from url_encode again, use url_slash_encode to fix redirection problem with quick filter and attributes containing '/' SVN revision: 2153 --- src/elogd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index 7a71109b..a0b868b3 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -1391,7 +1391,7 @@ Encode the given string in-place by adding %XX escapes pd = str; p = (unsigned char *) ps; while (*p && pd < str + 250) { - if (strchr("%&=#?+<>/", *p) || *p > 127) { + if (strchr("%&=#?+<>", *p) || *p > 127) { sprintf((char *) pd, "%%%02X", *p); pd += 3; p++; @@ -1417,7 +1417,7 @@ Do the same including '/' characters pd = str; p = (unsigned char *) ps; while (*p && pd < str + 250) { - if (strchr("%&=#?+/", *p) || *p > 127) { + if (strchr("%&=#?+<>/", *p) || *p > 127) { sprintf((char *) pd, "%%%02X", *p); pd += 3; p++; @@ -17498,7 +17498,7 @@ BOOL subst_param(char *str, int size, char *param, char *value) char *p1, *p2, *s, param_enc[256]; strlcpy(param_enc, param, sizeof(param_enc)); - url_encode(param_enc, sizeof(param_enc)); + url_slash_encode(param_enc, sizeof(param_enc)); if (!value[0]) {