]> git.kaiwu.me - nginx.git/commit
Disabled redirects to named locations if URI is not set.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 27 Feb 2014 16:36:35 +0000 (20:36 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 27 Feb 2014 16:36:35 +0000 (20:36 +0400)
commit96af3e9dfb1d890bbbbc78d88be8bb34a6e4d7a7
tree0a698a31f8b24e69bf692c844d2f5e7a23186b3d
parent8aa8365121ace17f02a9acf714aa4ed6467deddd
Disabled redirects to named locations if URI is not set.

If something like "error_page 400 @name" is used in a configuration,
a request could be passed to a named location without URI set, and this
in turn might result in segmentation faults or other bad effects
as most of the code assumes URI is set.

With this change nginx will catch such configuration problems in
ngx_http_named_location() and will stop request processing if URI
is not set, returning 500.
src/http/ngx_http_core_module.c