Mercurial > hg > nginx
changeset 2263:41b51261b726
disable $realpath_root variable in a "root" directive
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 29 Sep 2008 04:47:22 +0000 |
parents | c31f46332e80 |
children | 440e8bfbc57e |
files | src/http/ngx_http_core_module.c |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c Mon Sep 29 04:46:21 2008 +0000 +++ b/src/http/ngx_http_core_module.c Mon Sep 29 04:47:22 2008 +0000 @@ -3291,6 +3291,17 @@ return NGX_CONF_ERROR; } + if (ngx_strstr(value[1].data, "$realpath_root") + || ngx_strstr(value[1].data, "${realpath_root}")) + { + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, + "the $realpath_root variable may not be used " + "in the \"%V\" directive", + &cmd->name); + + return NGX_CONF_ERROR; + } + lcf->alias = alias; lcf->root = value[1];