Skip to content

Commit f731317

Browse files
author
bkraul
committed
Closes #89
1 parent ff2bdea commit f731317

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

BBCodePlus/BBCodePlus.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function register() {
2222
$this->name = plugin_lang_get( 'title' );
2323
$this->description = plugin_lang_get( 'description' );
2424
$this->page = 'config';
25-
$this->version = '2.1.13';
25+
$this->version = '2.1.14';
2626

2727
$this->requires['MantisCore'] = '2.0.0';
2828
# this plugin can coexist with MantisCoreFormatting.
@@ -216,15 +216,14 @@ public function rss( $p_event, $p_string ) {
216216
* @return string Formatted text
217217
*/
218218
public function email( $p_event, $p_string ) {
219-
#$p_string = string_strip_hrefs( $p_string );
220-
#$p_string = string_process_bug_link( $p_string, FALSE );
221-
#$p_string = string_process_bugnote_link( $p_string, FALSE );
222-
#$p_string = $this->string_process_cvs_link( $p_string, FALSE );
223219

224-
if ( ON == plugin_config_get( 'process_email' ) )
220+
if ( ON == plugin_config_get( 'process_email' ) ) {
221+
# process content to make sure all tags are converted to BBCode.
225222
$p_string = $this->string_process_bbcode( $p_string );
226-
else
227-
$p_string = $this->string_strip_bbcode( $p_string );
223+
}
224+
# strip the BBCode right back out. mantisbt email does not currently support HTML.
225+
$p_string = $this->string_strip_bbcode( $p_string );
226+
228227
return $p_string;
229228
}
230229
//-------------------------------------------------------------------

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ If you would like to contribute to BBCode plus, please [read this guide first](h
2626

2727
## Change Log
2828

29+
### 2.1.14
30+
31+
- Corrected email parsing behavior when Email Processing is turned on. MantisBT does not support HTML email natively.
32+
2933
### 2.1.13
3034

3135
- Added the following characters to work with the quotee's name in the named quote function (basically to support email-adresses here): . @ - [@FSD-Christian-ISS](https://github.com/FSD-Christian-ISS)

0 commit comments

Comments
 (0)