From f65c2c46011d593b4750584c832dbe1553073245 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 16 Mar 2004 14:25:09 +0000 Subject: [PATCH] Fix source forge bug 803693 When a title is given in a == == headline, the html was incorectly generated as: link It now generates: link --- includes/Parser.php | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 5e5a7d96e6..39cbff5c92 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1289,13 +1289,22 @@ class Parser $head[$c].=$sk->editSectionLink($c+1); } - // Put it all together - $head[$c].="" - .$headline - ."" - .""; + // the headline might have a link + if(preg_match("/(.*)" + .$headline + .""; + } + + // give headline the correct tag + $head[$c].=""; // Add the edit section link -- 2.20.1