| commit | a552ab476e95cd034d2463b3de95239010a8e0b0 | [log] [tgz] |
|---|---|---|
| author | Igor Sysoev <igor@sysoev.ru> | Fri Sep 25 09:30:06 2009 +0000 |
| committer | Igor Sysoev <igor@sysoev.ru> | Fri Sep 25 09:30:06 2009 +0000 |
| tree | 6bac5d4431e5bf59c800d9db195a76eb026869b1 | |
| parent | 7f6d71bbc848360f4f6b1ec276736b88fb15b3f0 [diff] [blame] |
check unsafe Destination
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index d2abaa7..b638f86 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c
@@ -1322,8 +1322,10 @@ unsafe: - ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, - "unsafe URI \"%V\" was detected", uri); + if (*flags & NGX_HTTP_LOG_UNSAFE) { + ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, + "unsafe URI \"%V\" was detected", uri); + } return NGX_ERROR; }