mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
Charset: disabled charset_map with utf-8 in the first column
Some checks failed
buildbot / buildbot (push) Has been cancelled
Some checks failed
buildbot / buildbot (push) Has been cancelled
This undocumented configuration was never expected to work and resulted in immediate segfaults. Reported by ret2ddme.
This commit is contained in:
parent
8f3465ac7f
commit
29c23ad846
1 changed files with 7 additions and 0 deletions
|
|
@ -1197,6 +1197,13 @@ ngx_http_charset_map_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||
return NGX_CONF_ERROR;
|
||||
}
|
||||
|
||||
if (ngx_strcasecmp(value[1].data, (u_char *) "utf-8") == 0) {
|
||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||
"\"charset_map\" with \"utf-8\" charset "
|
||||
"should be given in the second column");
|
||||
return NGX_CONF_ERROR;
|
||||
}
|
||||
|
||||
table = mcf->tables.elts;
|
||||
for (i = 0; i < mcf->tables.nelts; i++) {
|
||||
if ((src == table->src && dst == table->dst)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue