fix mod_webdav crash from #1793 (fixes #2048, thx hiroya)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2665 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.24
Stefan Bühler 14 years ago
parent 6ecb86159c
commit e087d5bf1e

@ -58,6 +58,7 @@ NEWS
* Add SSL Client Certificate verification (#1288)
* mod_fastcgi: Fix host->active_procs counter, return 503 if connect wasn't successful after 5 tries (fixes #1825)
* mod_accesslog: escape special characters (fixes #1551, thx icy)
* fix mod_webdav crash from #1793 (fixes #2048, thx hiroya)
- 1.4.23 - 2009-06-19
* Added some extra warning options in cmake and fix the resulting warnings (unused/static functions)

@ -1841,7 +1841,7 @@ URIHANDLER_FUNC(mod_webdav_subrequest_handler) {
con->http_status = 400;
return HANDLER_FINISHED;
}
if (NULL != (sep2 = strchr(start, '@'))) {
if (NULL != (sep2 = memchr(start, '@', sep - start))) {
/* skip login information */
start = sep2 + 1;
}

Loading…
Cancel
Save