[mod_proxy] fix backslash escaping

(thx gportay)
personal/stbuehler/mod-csrf
Glenn Strauss 2017-04-25 01:04:36 -04:00
parent 2986221cab
commit 440b371997
1 changed files with 2 additions and 2 deletions

View File

@ -691,10 +691,10 @@ static void buffer_append_string_backslash_escaped(buffer *b, const char *s, siz
p = b->ptr + buffer_string_length(b);
for (size_t i = 0; i < len; ++i) {
int c = p[j];
int c = s[i];
if (c == '"' || c == '\\' || c == 0x7F || (c < 0x20 && c != '\t'))
p[j++] = '\\';
p[j++] = s[i];
p[j++] = c;
}
buffer_commit(b, j);