diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-03-01 15:20:43 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-03-01 15:20:43 +0000 |
commit | 725ce1dc162e9c1919fbc78542ea9fc90797547d (patch) | |
tree | f84007a150688172ffcf03e66d2b9a6c913f2963 /modules/statistics | |
parent | 2a8ff0d37e41822f5ca887ce9bf9f08b7904c9f1 (diff) | |
download | brdo-725ce1dc162e9c1919fbc78542ea9fc90797547d.tar.gz brdo-725ce1dc162e9c1919fbc78542ea9fc90797547d.tar.bz2 |
- Bug 51905: decode_entities not available when a cached page is served..
Diffstat (limited to 'modules/statistics')
-rw-r--r-- | modules/statistics/statistics.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index ed6c28d17..9eaccd6fe 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -78,7 +78,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)", decode_entities(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(), $_SERVER['REMOTE_ADDR'], $user->uid, session_id(), timer_read('page'), time()); } } @@ -150,7 +150,7 @@ function statistics_access_log($aid) { if ($access = db_fetch_object($result)) { $output = '<table border="1" cellpadding="2" cellspacing="2">'; $output .= ' <tr><th>'. t('URL') ."</th><td>". l(url($access->path, NULL, NULL, TRUE), $access->path) ."</td></tr>"; - $output .= ' <tr><th>'. t('Title') .'</th><td>'. check_plain($access->title) .'</td></tr>'; + $output .= ' <tr><th>'. t('Title') .'</th><td>'. $access->title .'</td></tr>'; // safe because it comes from drupal_get_title() $output .= ' <tr><th>'. t('Referrer') ."</th><td>". ($access->url ? l($access->url, $access->url) : '') ."</td></tr>"; $output .= ' <tr><th>'. t('Date') .'</th><td>'. format_date($access->timestamp, 'large') .'</td></tr>'; $output .= ' <tr><th>'. t('User') .'</th><td>'. theme('username', $access) .'</td></tr>'; |