[mod_webdav] map COPY/MOVE Destination to aliases (fixes #1787)
commite0115208ec9f3f896509dccf373357f0e329e3b0
authorGlenn Strauss <gstrauss@gluelogic.com>
Wed, 27 Apr 2016 00:43:26 +0000 (26 20:43 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Tue, 3 May 2016 03:48:31 +0000 (2 23:48 -0400)
treeb166a128318d23a8d491152e2387ebd8e9342e84
parent3dc67b30044109a1958f16aeac6a59c891133ed4
[mod_webdav] map COPY/MOVE Destination to aliases (fixes #1787)

attempt to remap COPY/MOVE Destination to aliased physical paths
by finding common URI prefix between request URI and Destination
and finding how that part of the request URI was mapped to a
physical path.

This will work if the aliased physical path is above the webdav root.
It is not a good idea to remap physical paths within a webdav root.

Note: webdav paths and webdav properties are managed by mod_webdav,
      so do not modify paths externally or else undefined behavior
      or corruption may occur

x-ref:
  "Bug in mod_webdav when using aliases and MOVE command"
  https://redmine.lighttpd.net/issues/1787
src/mod_webdav.c