diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2014-05-16 17:42:24 +0400 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2014-05-16 17:42:24 +0400 |
commit | ffba0eeefbdbc36d8bb826523355fd31d8929a27 (patch) | |
tree | 4db5cb4564080c8d9812723f51efd16025ea6c85 /src/os/unix/ngx_posix_init.c | |
parent | a785be76f62ef76683034b4df99e0f353bb58921 (diff) | |
download | nginx-ffba0eeefbdbc36d8bb826523355fd31d8929a27.tar.gz nginx-ffba0eeefbdbc36d8bb826523355fd31d8929a27.zip |
Fixed alias in regex locations with limit_except/if.
The ngx_http_map_uri_to_path() function used clcf->regex to detect if
it's working within a location given by a regular expression and have
to replace full URI with alias (instead of a part matching the location
prefix). This is incorrect due to clcf->regex being false in implicit
locations created by if and limit_except.
Fix is to preserve relevant information in clcf->alias instead, by setting
it to NGX_MAX_SIZE_T_VALUE if an alias was specified in a regex location.
Diffstat (limited to 'src/os/unix/ngx_posix_init.c')
0 files changed, 0 insertions, 0 deletions