mirror of
https://github.com/nginx/nginx.git
synced 2024-11-29 12:14:27 -06:00
fix plain text values using relative path in ngx_http_complex_value(),
this fixes the auth_basic_user_file bug introduced in r2589
This commit is contained in:
parent
1e5ef6b0f4
commit
22d381e87c
@ -118,11 +118,6 @@ ngx_http_compile_complex_value(ngx_http_compile_complex_value_t *ccv)
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
ccv->complex_value->value = *v;
|
||||
ccv->complex_value->flushes = NULL;
|
||||
ccv->complex_value->lengths = NULL;
|
||||
ccv->complex_value->values = NULL;
|
||||
|
||||
nv = 0;
|
||||
nc = 0;
|
||||
|
||||
@ -147,6 +142,11 @@ ngx_http_compile_complex_value(ngx_http_compile_complex_value_t *ccv)
|
||||
ccv->root_prefix = 0;
|
||||
}
|
||||
|
||||
ccv->complex_value->value = *v;
|
||||
ccv->complex_value->flushes = NULL;
|
||||
ccv->complex_value->lengths = NULL;
|
||||
ccv->complex_value->values = NULL;
|
||||
|
||||
if (nv == 0 && nc == 0) {
|
||||
return NGX_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user