Skip to content

Commit

Permalink
arut#55 Fix PROPFIND fail with 500 on simlinks to non exist file/dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
rozhuk-im authored and MkfsSion committed Feb 21, 2023
1 parent a020506 commit 7f3cc43
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ngx_http_dav_ext_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,10 +920,9 @@ ngx_http_dav_ext_propfind(ngx_http_request_t *r, ngx_uint_t props)
ngx_cpystrn(last, name.data, name.len + 1);

if (ngx_de_info(filename, &dir) == NGX_FILE_ERROR) {
ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno,
ngx_log_error(NGX_LOG_ERR, r->connection->log, ngx_errno,
ngx_de_info_n " \"%s\" failed", filename);
rc = NGX_HTTP_INTERNAL_SERVER_ERROR;
break;
continue;
}
}

Expand Down

0 comments on commit 7f3cc43

Please sign in to comment.