Fix dropping last character of evhost pattern (#161)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2275 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.20
Stefan Bühler 15 years ago
parent b8835ab9a8
commit 8d837b75d0

@ -47,6 +47,7 @@ NEWS
* inserted many con->mode checks; they should prevent two modules to handle the same request if they shouldn't (#631)
* fixed url encoding to encode more characters (#266)
* allow digits in [s]cgi env vars (#1712)
* fixed dropping last character of evhost pattern (#161)
- 1.4.19 - 2008-03-10

@ -95,7 +95,7 @@ static void mod_evhost_parse_pattern(plugin_config *s) {
s->path_pieces = realloc(s->path_pieces,(s->len+1) * sizeof(*s->path_pieces));
s->path_pieces[s->len] = buffer_init();
buffer_append_memory(s->path_pieces[s->len],pos,ptr-pos);
buffer_copy_string_len(s->path_pieces[s->len],pos,ptr-pos);
s->len += 1;
}

Loading…
Cancel
Save