diff options
author | uckelman <uckelman@nomic.net> | 2010-07-27 09:05:29 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-07-27 09:05:29 +0000 |
commit | 69c523cb97078f06eaf81968a519da25bb11f43b (patch) | |
tree | ab057b6a259346f62bb8036ba65e7c09d9c202af /src | |
parent | b2c60e87f7de38bf35ca9634dbe5807f92ba34e4 (diff) |
Convert non-BBCode email links.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7038 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src')
-rw-r--r-- | src/BBCodeParser.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/BBCodeParser.php b/src/BBCodeParser.php index 1a19d1f..1f9aa26 100644 --- a/src/BBCodeParser.php +++ b/src/BBCodeParser.php @@ -16,7 +16,8 @@ class BBCodeParser { $in = preg_replace('/<!-- s(.*?) --><img src="\{SMILIES_PATH\}\/.*? \/><!-- s\1 -->/', '\1', $in); # convert non-BBCode links to BBCode (ack!) - $in = preg_replace('/<!-- (m|w) --><a class="postlink" href="(.*?)">(.*?)<\/a><!-- \1 -->/', "[url:$uid=\\2]\\3[/url:$uid]", $in); + $in = preg_replace('/<!-- ([mw]) --><a class="postlink" href="(.*?)">(.*?)<\/a><!-- \1 -->/', "[url:$uid=\\2]\\3[/url:$uid]", $in); + $in = preg_replace('/<!-- e --><a href="(.*?)">(.*?)<\/a><!-- e -->/', "[email:$uid=\\1]\\2[/email:$uid]", $in); $text_stack = array(); $arg_stack = array(); |