]> git.kaiwu.me - nginx.git/commit
Dav: restored the request URI on a destination mapping error.
authorVadim Zhestikov <v.zhestikov@f5.com>
Thu, 17 Sep 2026 17:23:21 +0000 (10:23 -0700)
committerVadimZhestikov <108960056+VadimZhestikov@users.noreply.github.com>
Thu, 15 Oct 2026 15:12:19 +0000 (08:12 -0700)
commit2b84cd7dd79097e86c06ae1eae1d743c58af164c
treea7a7325283de8b709dba248222328d5fff6ee725
parent1f214f4158d2bd1a06f09cfbd4b017c0aceb2229
Dav: restored the request URI on a destination mapping error.

The COPY and MOVE handler temporarily replaces r->uri with the
destination to map it to a path, restoring it only on success.  When
ngx_http_map_uri_to_path() failed for the destination, the handler
returned without restoring r->uri, leaving it set to the client-supplied
destination.  Later processing that derives a target from the request
URI, such as an error_page with a variable, then resolved against the
destination instead of the request target.
src/http/modules/ngx_http_dav_module.c