From db8c3edca566f38609175898dfd0ccba4b7cd07f Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sat, 16 Aug 2003 05:25:33 +0000
Subject: [PATCH] - Bugfix: don't user term->descriptions in link attributes as
 they are HTML   code on their own.

---
 modules/taxonomy.module          | 4 ++--
 modules/taxonomy/taxonomy.module | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index 2f854724085d..284da31c607d 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -40,7 +40,7 @@ function taxonomy_link($type, $node = NULL) {
     if ($node->taxonomy) {
       foreach ($node->taxonomy as $tid) {
         $term = taxonomy_get_term($tid);
-        $links[] = l($term->name, "taxonomy/page/or/$term->tid", $term->description ? array("title" => $term->description) : array());
+        $links[] = l($term->name, "taxonomy/page/or/$term->tid");
       }
     }
     else {
@@ -55,7 +55,7 @@ function taxonomy_link($type, $node = NULL) {
 
       $links = array();
       foreach (taxonomy_node_get_terms($node->nid) as $term) {
-        $links[] = l($term->name, "taxonomy/page/or/$term->tid", $term->description ? array("title" => $term->description) : array());
+        $links[] = l($term->name, "taxonomy/page/or/$term->tid");
       }
 
     }
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 2f854724085d..284da31c607d 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -40,7 +40,7 @@ function taxonomy_link($type, $node = NULL) {
     if ($node->taxonomy) {
       foreach ($node->taxonomy as $tid) {
         $term = taxonomy_get_term($tid);
-        $links[] = l($term->name, "taxonomy/page/or/$term->tid", $term->description ? array("title" => $term->description) : array());
+        $links[] = l($term->name, "taxonomy/page/or/$term->tid");
       }
     }
     else {
@@ -55,7 +55,7 @@ function taxonomy_link($type, $node = NULL) {
 
       $links = array();
       foreach (taxonomy_node_get_terms($node->nid) as $term) {
-        $links[] = l($term->name, "taxonomy/page/or/$term->tid", $term->description ? array("title" => $term->description) : array());
+        $links[] = l($term->name, "taxonomy/page/or/$term->tid");
       }
 
     }
-- 
GitLab