Overview
SHA1 Hash: | 266b6127f64cedd005a12116ed61645c1e519afd |
---|---|
Date: | 2009-06-20 13:06:47 |
User: | drh |
Comment: | Fix a bug that prevented the IP address of website users from being recorded in the administator logs. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/cgi.c from [8c16621a50] to [1b01c427a4].
@@ -677,10 +677,13 @@ z = (char*)P("QUERY_STRING"); if( z ){ z = mprintf("%s",z); add_param_list(z, '&'); } + + z = P("REMOTE_ADDR"); + if( z ) g.zIpAddr = mprintf("%s", z); len = atoi(PD("CONTENT_LENGTH", "0")); g.zContentType = zType = P("CONTENT_TYPE"); if( len>0 && zType ){ blob_zero(&g.cgiIn);