diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-13 00:33:05 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-13 00:33:05 +0000 |
commit | 8292bdd40ab3a9e70d44dad0e681d0222c1556cb (patch) | |
tree | 7e66d08bef9b38acd705e9e918129083435af3b8 /modules/tracker | |
parent | 448640f1380c39ec3be39791d7efb449f150e1ed (diff) | |
download | brdo-8292bdd40ab3a9e70d44dad0e681d0222c1556cb.tar.gz brdo-8292bdd40ab3a9e70d44dad0e681d0222c1556cb.tar.bz2 |
Re-commit of #242873 by pwolanin and bjaspan: Make drupal_set_title() check_plain() by default.
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 97d948992..027b39419 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(check_plain($account->name)); + drupal_set_title($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'; |