summaryrefslogtreecommitdiff
path: root/functions.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2000-07-02 11:21:00 +0000
committerDries Buytaert <dries@buytaert.net>2000-07-02 11:21:00 +0000
commitfb14df9faba492cd571ff59123633d97dd4c2ef2 (patch)
tree7fd0f635e7ce5170685e0a83e5cdcaa3a7ff74a8 /functions.inc
parent2240b7ec6f021e63aac3358c947e0c866330e2fd (diff)
downloadbrdo-fb14df9faba492cd571ff59123633d97dd4c2ef2.tar.gz
brdo-fb14df9faba492cd571ff59123633d97dd4c2ef2.tar.bz2
* Fixed at least 5 bugs!!! :)
Diffstat (limited to 'functions.inc')
-rw-r--r--functions.inc4
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);
}