@@ -22,7 +22,7 @@ function register() {
22
22
$ this ->name = plugin_lang_get ( 'title ' );
23
23
$ this ->description = plugin_lang_get ( 'description ' );
24
24
$ this ->page = 'config ' ;
25
- $ this ->version = '2.1.10 ' ;
25
+ $ this ->version = '2.1.11 ' ;
26
26
27
27
$ this ->requires ['MantisCore ' ] = '2.0.0 ' ;
28
28
# this plugin can coexist with MantisCoreFormatting.
@@ -298,11 +298,10 @@ function string_process_bbcode( $p_string, $p_multiline = TRUE ) {
298
298
if ( ON == $ this ->t_MantisCoreFormatting_process_urls ) {
299
299
$ p_string = string_strip_hrefs ( $ p_string );
300
300
}
301
-
301
+
302
302
# convert url-strings into links
303
- $ p_string = preg_replace ( "/^((http|https|ftp|file):\/\/[a-z0-9;\/\?:@=\& \$\-_\.\+!*'\(\),~%#\|]+)/i " , "[url]$1[/url] " , $ p_string );
304
- $ p_string = preg_replace ( "/([^=' \"(\[url\]|\[img\])])((http|https|ftp|file):\/\/[a-z0-9;\/\?:@=\& \$\-_\.\+!*'\(\),~%#\|]+)/i " , "$1[url]$2[/url] " , $ p_string );
305
-
303
+ $ p_string = preg_replace ( "/^((https?|s?ftp|file|irc[6s]?|ssh|telnet|nntp|git|svn(?:\+ssh)?|cvs|mailto):\/\/[a-z0-9;\/\?:@=\& \$\-_\.\+!*'\(\),~%#\|]+)/i " , "[url]$1[/url] " , $ p_string );
304
+ $ p_string = preg_replace ( "/([^=' \"(\[url\]|\[img\])])((https?|s?ftp|file|irc[6s]?|ssh|telnet|nntp|git|svn(?:\+ssh)?|cvs|mailto):\/\/[a-z0-9;\/\?:@=\& \$\-_\.\+!*'\(\),~%#\|]+)/i " , "$1[url]$2[/url] " , $ p_string );
306
305
307
306
# if mantis core formatting plugin process text feature is off, we need to sanitize the html,
308
307
# for safety. this is the only functionality we will support when the MantisCoreFormatting plugin is
0 commit comments