diff options
Diffstat (limited to 'src/core/ngx_file.c')
-rw-r--r-- | src/core/ngx_file.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c index c3c4592a7..0d094ec87 100644 --- a/src/core/ngx_file.c +++ b/src/core/ngx_file.c @@ -259,6 +259,10 @@ ngx_conf_set_path_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) path->name = value[1]; + if (path->name.data[path->name.len - 1] == '/') { + path->name.len--; + } + if (ngx_conf_full_name(cf->cycle, &path->name) == NGX_ERROR) { return NULL; } |