Browse Source

fixed stripping if strip and input are the same

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@833 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.8
Jan Kneschke 16 years ago
parent
commit
32879e3663
  1. 2
      src/mod_fastcgi.c

2
src/mod_fastcgi.c

@ -1830,7 +1830,7 @@ static int fcgi_create_env(server *srv, handler_ctx *hctx, size_t request_id) {
buffer_append_string(host->strip_request_uri, "/");
}
if (con->request.orig_uri->used > host->strip_request_uri->used &&
if (con->request.orig_uri->used >= host->strip_request_uri->used &&
0 == strncmp(con->request.orig_uri->ptr, host->strip_request_uri->ptr, host->strip_request_uri->used - 1)) {
/* the left is the same */

Loading…
Cancel
Save