projects
/
nginx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
upstream nginx-0.7.35
[nginx.git]
/
nginx
/
src
/
http
/
ngx_http_core_module.c
diff --git
a/nginx/src/http/ngx_http_core_module.c
b/nginx/src/http/ngx_http_core_module.c
index
a21da0f
..
3f5cb29
100644
(file)
--- a/
nginx/src/http/ngx_http_core_module.c
+++ b/
nginx/src/http/ngx_http_core_module.c
@@
-1197,6
+1197,11
@@
ngx_http_core_try_files_phase(ngx_http_request_t *r,
ngx_memcpy(p, name, path.len);
}
ngx_memcpy(p, name, path.len);
}
+ if (ngx_http_set_exten(r) != NGX_OK) {
+ ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
+ return NGX_OK;
+ }
+
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"try file uri: \"%V\"", &r->uri);
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"try file uri: \"%V\"", &r->uri);