Skip to content
Snippets Groups Projects
Commit 427a71f8 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parses an article to extract related links.
parent bbfc1f00
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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>";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment