mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:33:03 +00:00
Removed '/' from url_encode again, use url_slash_encode to fix redirection problem with quick filter and attributes containing '/'
SVN revision: 2153
This commit is contained in:
parent
2e2ba94fe9
commit
35d13c21c9
@ -1391,7 +1391,7 @@ Encode the given string in-place by adding %XX escapes
|
|||||||
pd = str;
|
pd = str;
|
||||||
p = (unsigned char *) ps;
|
p = (unsigned char *) ps;
|
||||||
while (*p && pd < str + 250) {
|
while (*p && pd < str + 250) {
|
||||||
if (strchr("%&=#?+<>/", *p) || *p > 127) {
|
if (strchr("%&=#?+<>", *p) || *p > 127) {
|
||||||
sprintf((char *) pd, "%%%02X", *p);
|
sprintf((char *) pd, "%%%02X", *p);
|
||||||
pd += 3;
|
pd += 3;
|
||||||
p++;
|
p++;
|
||||||
@ -1417,7 +1417,7 @@ Do the same including '/' characters
|
|||||||
pd = str;
|
pd = str;
|
||||||
p = (unsigned char *) ps;
|
p = (unsigned char *) ps;
|
||||||
while (*p && pd < str + 250) {
|
while (*p && pd < str + 250) {
|
||||||
if (strchr("%&=#?+/", *p) || *p > 127) {
|
if (strchr("%&=#?+<>/", *p) || *p > 127) {
|
||||||
sprintf((char *) pd, "%%%02X", *p);
|
sprintf((char *) pd, "%%%02X", *p);
|
||||||
pd += 3;
|
pd += 3;
|
||||||
p++;
|
p++;
|
||||||
@ -17498,7 +17498,7 @@ BOOL subst_param(char *str, int size, char *param, char *value)
|
|||||||
char *p1, *p2, *s, param_enc[256];
|
char *p1, *p2, *s, param_enc[256];
|
||||||
|
|
||||||
strlcpy(param_enc, param, sizeof(param_enc));
|
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]) {
|
if (!value[0]) {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user