Allow digits in [s]cgi env vars (#1712)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2274 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
d62f894344
commit
b8835ab9a8
1
NEWS
1
NEWS
|
@ -46,6 +46,7 @@ NEWS
|
|||
* mod_{fast,s}cgi: overwrite environment variables (#1722)
|
||||
* 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)
|
||||
|
||||
- 1.4.19 - 2008-03-10
|
||||
|
||||
|
|
|
@ -949,7 +949,7 @@ static int cgi_create_env(server *srv, connection *con, plugin_data *p, buffer *
|
|||
|
||||
for (j = 0; j < ds->key->used - 1; j++) {
|
||||
p->tmp_buf->ptr[p->tmp_buf->used++] =
|
||||
isalpha((unsigned char)ds->key->ptr[j]) ?
|
||||
light_isalnum((unsigned char)ds->key->ptr[j]) ?
|
||||
toupper((unsigned char)ds->key->ptr[j]) : '_';
|
||||
}
|
||||
p->tmp_buf->ptr[p->tmp_buf->used++] = '\0';
|
||||
|
|
|
@ -1421,7 +1421,7 @@ static int scgi_env_add_request_headers(server *srv, connection *con, plugin_dat
|
|||
buffer_prepare_append(srv->tmp_buf, ds->key->used + 2);
|
||||
for (j = 0; j < ds->key->used - 1; j++) {
|
||||
srv->tmp_buf->ptr[srv->tmp_buf->used++] =
|
||||
isalpha((unsigned char)ds->key->ptr[j]) ?
|
||||
light_isalnum((unsigned char)ds->key->ptr[j]) ?
|
||||
toupper((unsigned char)ds->key->ptr[j]) : '_';
|
||||
}
|
||||
srv->tmp_buf->ptr[srv->tmp_buf->used++] = '\0';
|
||||
|
|
Loading…
Reference in New Issue