comparison src/http/ngx_http_parse.c @ 3161:d430c6ab1c99

check unsafe Destination
author Igor Sysoev <igor@sysoev.ru>
date Fri, 25 Sep 2009 09:30:06 +0000
parents bd2573c97e4a
children 84905c7b2aa7
comparison
equal deleted inserted replaced
3160:a7637c2c1157 3161:d430c6ab1c99
1320 1320
1321 return NGX_OK; 1321 return NGX_OK;
1322 1322
1323 unsafe: 1323 unsafe:
1324 1324
1325 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 1325 if (*flags & NGX_HTTP_LOG_UNSAFE) {
1326 "unsafe URI \"%V\" was detected", uri); 1326 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
1327 "unsafe URI \"%V\" was detected", uri);
1328 }
1327 1329
1328 return NGX_ERROR; 1330 return NGX_ERROR;
1329 } 1331 }
1330 1332
1331 1333