From d5a9d286bb7a53222cdeebbcb08e9f07683b620d Mon Sep 17 00:00:00 2001 From: uckelman Date: Thu, 29 Jul 2010 11:05:29 +0000 Subject: Handle (postlink-local) non-BBCode local links. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7044 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/BBCodeParser.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BBCodeParser.php b/src/BBCodeParser.php index 1f9aa26..7419491 100644 --- a/src/BBCodeParser.php +++ b/src/BBCodeParser.php @@ -17,6 +17,7 @@ class BBCodeParser { # convert non-BBCode links to BBCode (ack!) $in = preg_replace('/(.*?)<\/a>/', "[url:$uid=\\2]\\3[/url:$uid]", $in); + $in = preg_replace('/(.*?)<\/a>/', "[url:$uid=\\1]\\2[/url:$uid]", $in); $in = preg_replace('/(.*?)<\/a>/', "[email:$uid=\\1]\\2[/email:$uid]", $in); $text_stack = array(); -- cgit v1.2.3