mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-01 22:25:45 +03:00
Merge pull request #148 from zimmerle/bugfix_charset_missing_string_terminator
Bugfix: missing string terminator while mounting the charset (nginx)
This commit is contained in:
@@ -615,7 +615,7 @@ ngx_http_modsecurity_load_headers_out(ngx_http_request_t *r)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngx_snprintf(content_type, content_type_len,
|
ngx_snprintf(content_type, content_type_len,
|
||||||
"%V; charset=%V",
|
"%V; charset=%V\0",
|
||||||
&r->headers_out.content_type,
|
&r->headers_out.content_type,
|
||||||
&r->headers_out.charset);
|
&r->headers_out.charset);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user