From dd943ff69c3bf4ab5215437641ba282a7f5e4ac4 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 18 Aug 2004 14:39:17 +0000 Subject: [PATCH] Patch to formatComment() to fix otherwise-unrecognised links with an initial colon, written by Kate- --- includes/Skin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/Skin.php b/includes/Skin.php index dc697349a3..6ea3cb7d01 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -2543,6 +2543,8 @@ class Skin { $trail = ""; } $linkRegexp = '/\[\[(.*?)\]\]' . preg_quote( $trail, '/' ) . '/'; + if ($match[1][0] == ':') + $match[1] = substr($match[1], 1); $thelink = $this->makeLink( $match[1], $text, "", $trail ); } $comment = preg_replace( $linkRegexp, $thelink, $comment, 1 ); -- 2.20.1