Differences From:
File
src/cgi.c
part of check-in
[c3a30a6b80]
- Add cache-control: no-cache to the server reply header.
Ticket b465b3bc2ceef4446b2ae770242ed0968e4dbc68
by
drh on
2009-03-31 17:33:05.
[view]
To:
File
src/cgi.c
part of check-in
[266b6127f6]
- Fix a bug that prevented the IP address of website users from being
recorded in the administator logs.
by
drh on
2009-06-20 13:06:47.
[view]
@@ -678,8 +678,11 @@
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 ){