comparison src/http/modules/ngx_http_ssi_filter_module.c @ 3161:d430c6ab1c99

check unsafe Destination
author Igor Sysoev <igor@sysoev.ru>
date Fri, 25 Sep 2009 09:30:06 +0000
parents 5bc8811728f8
children be47fe127f8c 17995396463d
comparison
equal deleted inserted replaced
3160:a7637c2c1157 3161:d430c6ab1c99
1906 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 1906 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
1907 "ssi include: \"%V\"", uri); 1907 "ssi include: \"%V\"", uri);
1908 1908
1909 args.len = 0; 1909 args.len = 0;
1910 args.data = NULL; 1910 args.data = NULL;
1911 flags = 0; 1911 flags = NGX_HTTP_LOG_UNSAFE;
1912 1912
1913 if (ngx_http_parse_unsafe_uri(r, uri, &args, &flags) != NGX_OK) { 1913 if (ngx_http_parse_unsafe_uri(r, uri, &args, &flags) != NGX_OK) {
1914 return NGX_HTTP_SSI_ERROR; 1914 return NGX_HTTP_SSI_ERROR;
1915 } 1915 }
1916 1916