diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-05-25 15:04:42 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-05-25 15:04:42 +0000 |
commit | 4a6f5869e5df2433643199d2ab239569b3ece6b2 (patch) | |
tree | a4e1b24621988089bc8e35c02d7b33f71c8eb901 /modules/statistics | |
parent | 5b45c4afc55a80cf8babf071072c4653d8a4b23c (diff) | |
download | brdo-4a6f5869e5df2433643199d2ab239569b3ece6b2.tar.gz brdo-4a6f5869e5df2433643199d2ab239569b3ece6b2.tar.bz2 |
- Patch #142773 by kbahey: made Drupal work correctly when behind a reverse proxy.
Diffstat (limited to 'modules/statistics')
-rw-r--r-- | modules/statistics/statistics.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index dbbf238b2..69f65c326 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -68,7 +68,7 @@ function statistics_exit() { } if ((variable_get('statistics_enable_access_log', 0)) && (module_invoke('throttle', 'status') == 0)) { // Log this page access. - db_query("INSERT INTO {accesslog} (title, path, url, hostname, uid, sid, timer, timestamp) values('%s', '%s', '%s', '%s', %d, '%s', %d, %d)", strip_tags(drupal_get_title()), $_GET['q'], referer_uri(), $_SERVER['REMOTE_ADDR'], $user->uid, session_id(), timer_read('page'), time()); + db_query("INSERT INTO {accesslog} (title, path, url, hostname, uid, sid, timer, timestamp) values('%s', '%s', '%s', '%s', %d, '%s', %d, %d)", strip_tags(drupal_get_title()), $_GET['q'], referer_uri(), ip_address(), $user->uid, session_id(), timer_read('page'), time()); } } |