diff options
Diffstat (limited to 'functions.inc')
-rw-r--r-- | functions.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.inc b/functions.inc index 9ea6cfa9f..e118e98c5 100644 --- a/functions.inc +++ b/functions.inc @@ -106,8 +106,8 @@ function displayRelatedLinks($theme, $story) { } ### Default related links: - $content .= " <LI>More about <A HREF=\"search.php?category=$story->category\">$story->category</A>.</LI>"; - $content .= " <LI>Also by <A HREF=\"search.php?author=$story->aid\">$story->userid</A>.</LI>"; + $content .= " <LI>More about <A HREF=\"search.php?category=". urlencode($story->category) ."\">$story->category</A>.</LI>"; + $content .= " <LI>Also by <A HREF=\"search.php?author=". urlencode($story->userid) ."\">$story->userid</A>.</LI>"; $theme->box("Related links", $content); } |