diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-12 06:27:06 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-12 06:27:06 +0000 |
commit | a3a420c3e6f3805a91448c877a8a423f7232198c (patch) | |
tree | 355650769d2e533c6dc6c6d38ad057cca622b727 /modules/tracker | |
parent | f76acb2d9d421ff705be6fd2713b8cc2c007e1df (diff) | |
download | brdo-a3a420c3e6f3805a91448c877a8a423f7232198c.tar.gz brdo-a3a420c3e6f3805a91448c877a8a423f7232198c.tar.bz2 |
Roll-back of #242873: This caused horrendous problems with SimpleTest on some configurations.
Diffstat (limited to 'modules/tracker')
-rw-r--r-- | modules/tracker/tracker.pages.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tracker/tracker.pages.inc b/modules/tracker/tracker.pages.inc index 027b39419..97d948992 100644 --- a/modules/tracker/tracker.pages.inc +++ b/modules/tracker/tracker.pages.inc @@ -19,7 +19,7 @@ function tracker_page($account = NULL, $set_title = FALSE) { // When viewed from user/%user/track, display the name of the user // as page title -- the tab title remains Track so this needs to be done // here and not in the menu definiton. - drupal_set_title($account->name); + drupal_set_title(check_plain($account->name)); } // TODO: These queries are very expensive, see http://drupal.org/node/105639 $sql = 'SELECT DISTINCT(n.nid), n.title, n.type, n.changed, n.uid, u.name, GREATEST(n.changed, l.last_comment_timestamp) AS last_updated, l.comment_count FROM {node} n INNER JOIN {node_comment_statistics} l ON n.nid = l.nid INNER JOIN {users} u ON n.uid = u.uid LEFT JOIN {comments} c ON n.nid = c.nid AND (c.status = %d OR c.status IS NULL) WHERE n.status = 1 AND (n.uid = %d OR c.uid = %d) ORDER BY last_updated DESC'; |