From fbb5370581eba49fb8462c97b52eb34cf225a3fb Mon Sep 17 00:00:00 2001 From: Steven Wittens <steven@10.no-reply.drupal.org> Date: Thu, 4 Jan 2001 15:27:26 +0000 Subject: [PATCH] Category bug fixed. --- themes/unconed/unconed.theme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/unconed/unconed.theme b/themes/unconed/unconed.theme index 62ebb8da14d9..7a386d18c49d 100644 --- a/themes/unconed/unconed.theme +++ b/themes/unconed/unconed.theme @@ -87,7 +87,7 @@ function abstract($story) { else { print "<SMALL>Posted by $anonymous on $timestamp"; } if ($story->department) { print " - from the $story->department dept."; } print "</SMALL>"; - if ($story->category) { print "</TD><TD BGCOLOR=\"$this->bgcolor2\" ALIGN=\"center\"><B><A HREF=\"search.php?category=$story->category\"><FONT COLOR=\"$this->categorycolor\">$story->category</FONT></A></B>"; } + if ($story->category) { print "</TD><TD BGCOLOR=\"$this->bgcolor2\" ALIGN=\"center\"><B><A HREF=\"search.php?category=" . urlencode($story->category) . "\"><FONT COLOR=\"$this->categorycolor\">$story->category</FONT></A></B>"; } ?> </TD> </TR> @@ -122,7 +122,7 @@ function article($story, $reply) { else { print "<SMALL>Posted by $anonymous on $timestamp"; } if ($story->department) { print " - from the $story->department dept."; } print "</SMALL>"; - if ($story->category) { print "</TD><TD BGCOLOR=\"$this->bgcolor3\" ALIGN=\"center\"><B><A HREF=\"search.php?category=$story->category\"><FONT COLOR=\"$this->categorycolor\">$story->category</FONT></A></B>"; } + if ($story->category) { print "</TD><TD BGCOLOR=\"$this->bgcolor3\" ALIGN=\"center\"><B><A HREF=\"search.php?category=" . urlencode($story->category) . "\"><FONT COLOR=\"$this->categorycolor\">$story->category</FONT></A></B>"; } ?> </TD> </TR> -- GitLab