mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 21:23:36 -06:00
test default NTFS stream "::$DATA"
This commit is contained in:
parent
1f07392c42
commit
04e1156d2e
@ -788,16 +788,31 @@ ngx_http_process_request_line(ngx_event_t *rev)
|
||||
|
||||
p = r->uri.data + r->uri.len - 1;
|
||||
|
||||
if (*p == '.' || *p == ' ') {
|
||||
while (p > r->uri.data) {
|
||||
|
||||
while (--p > r->uri.data && (*p == '.' || *p == ' ')) {
|
||||
/* void */
|
||||
if (*p == ' ') {
|
||||
p--;
|
||||
continue;
|
||||
}
|
||||
|
||||
r->uri.len = p + 1 - r->uri.data;
|
||||
if (*p == '.') {
|
||||
p--;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ngx_strncasecmp(p - 6, (u_char *) "::$data", 7) == 0) {
|
||||
p -= 7;
|
||||
continue;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if (p != r->uri.data + r->uri.len - 1) {
|
||||
r->uri.len = p + 1 - r->uri.data;
|
||||
ngx_http_set_exten(r);
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user