aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_process_cycle.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2014-05-16 17:42:24 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2014-05-16 17:42:24 +0400
commitffba0eeefbdbc36d8bb826523355fd31d8929a27 (patch)
tree4db5cb4564080c8d9812723f51efd16025ea6c85 /src/os/unix/ngx_process_cycle.c
parenta785be76f62ef76683034b4df99e0f353bb58921 (diff)
downloadnginx-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_process_cycle.c')
0 files changed, 0 insertions, 0 deletions