summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-07-11 02:23:08 +0000
committerDries Buytaert <dries@buytaert.net>2008-07-11 02:23:08 +0000
commit7294ced6f0fd3ece74018cacec8a6af8e3d31f19 (patch)
treef79b40b583badbeaa69ffc506ba55b575f54089c
parent8d38010d8d834872412b7f8d251c2d066de3ce1f (diff)
downloadbrdo-7294ced6f0fd3ece74018cacec8a6af8e3d31f19.tar.gz
brdo-7294ced6f0fd3ece74018cacec8a6af8e3d31f19.tar.bz2
- Patch #280629 by Damien, pwolanin, Susurrus, et al: ensure safe arguments in theme_links().
-rw-r--r--includes/theme.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index dae26aa94..424cde1c0 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1119,7 +1119,7 @@ function theme_links($links, $attributes = array('class' => 'links')) {
if (isset($link['href']) && ($link['href'] == $_GET['q'] || ($link['href'] == '<front>' && drupal_is_front_page()))) {
$class .= ' active';
}
- $output .= '<li class="' . $class . '">';
+ $output .= '<li' . drupal_attributes(array('class' => $class)) . '>';
if (isset($link['href'])) {
// Pass in $link as $options, they share the same keys.