mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 01:22:18 +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,
|
||||
"%V; charset=%V",
|
||||
"%V; charset=%V\0",
|
||||
&r->headers_out.content_type,
|
||||
&r->headers_out.charset);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user