Commit 427a71f8 authored by Dries's avatar Dries
Browse files

Fixed a bug in displayRelatedLinks(), the function that displays that

parses an article to extract related links.
parent bbfc1f00
......@@ -89,7 +89,7 @@ function displayRelatedLinks($theme, $sid = 0) {
### parse story for A HREF-tags:
$text = "$story->abstract $story->comments $story->article";
while ($text = stristr($text, "<A HREF=")) {
$link = substr($text, 0, strpos($text, "</a>") + 4);
$link = substr($text, 0, strpos(strtolower($text), "</a>") + 4);
$text = stristr($text, "</A>");
if (!stristr($link, "mailto:")) $content .= "<LI>$link</LI>";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment