summaryrefslogtreecommitdiff
path: root/src/BBCodeParser.php
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-07-27 09:05:29 +0000
committeruckelman <uckelman@nomic.net>2010-07-27 09:05:29 +0000
commit69c523cb97078f06eaf81968a519da25bb11f43b (patch)
treeab057b6a259346f62bb8036ba65e7c09d9c202af /src/BBCodeParser.php
parentb2c60e87f7de38bf35ca9634dbe5807f92ba34e4 (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/BBCodeParser.php')
-rw-r--r--src/BBCodeParser.php3
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();