mod_webdav: Patch to skip login information for domain part of Destination field (fixes #1793)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2629 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
56adf372fb
commit
cef23f08d3
|
@ -1782,7 +1782,7 @@ URIHANDLER_FUNC(mod_webdav_subrequest_handler) {
|
|||
case HTTP_METHOD_MOVE:
|
||||
case HTTP_METHOD_COPY: {
|
||||
buffer *destination = NULL;
|
||||
char *sep, *start;
|
||||
char *sep, *sep2, *start;
|
||||
int overwrite = 1;
|
||||
|
||||
if (p->conf.is_readonly) {
|
||||
|
@ -1841,6 +1841,10 @@ URIHANDLER_FUNC(mod_webdav_subrequest_handler) {
|
|||
con->http_status = 400;
|
||||
return HANDLER_FINISHED;
|
||||
}
|
||||
if (NULL != (sep2 = strchr(start, '@'))) {
|
||||
/* skip login information */
|
||||
start = sep2 + 1;
|
||||
}
|
||||
buffer_copy_string_len(p->uri.authority, start, sep - start);
|
||||
|
||||
start = sep + 1;
|
||||
|
|
Loading…
Reference in New Issue