regex patch
This commit is contained in:
parent
e9125ce065
commit
2f2a316b27
1
boot.php
1
boot.php
@ -295,6 +295,7 @@ define ( 'MENU_ITEM_NEWWIN', 0x0002);
|
|||||||
|
|
||||||
define ( 'POLL_SIMPLE_RATING', 0x0001);
|
define ( 'POLL_SIMPLE_RATING', 0x0001);
|
||||||
define ( 'POLL_MULTIPLE_CHOICE', 0x0002);
|
define ( 'POLL_MULTIPLE_CHOICE', 0x0002);
|
||||||
|
define ( 'POLL_OVERWRITE', 0x8000); // If you vote twice remove the prior entry
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -271,7 +271,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
|
|||||||
$urlchars = '[a-zA-Z0-9\:\/\-\?\&\;\.\=\@\_\~\#\%\$\!\+\,]';
|
$urlchars = '[a-zA-Z0-9\:\/\-\?\&\;\.\=\@\_\~\#\%\$\!\+\,]';
|
||||||
|
|
||||||
if (strpos($Text,'http') !== false) {
|
if (strpos($Text,'http') !== false) {
|
||||||
$Text = preg_replace("/([^\]\='".'"'."]|^)(https?\:\/\/$urlchars+)/ism", '$1<a href="$2" >$2</a>', $Text);
|
$Text = preg_replace("/([^\"\]\='".'"'."]|^)(https?\:\/\/$urlchars+)/ism", '$1<a href="$2" >$2</a>', $Text);
|
||||||
}
|
}
|
||||||
if (strpos($Text,'[/share]') !== false) {
|
if (strpos($Text,'[/share]') !== false) {
|
||||||
$Text = preg_replace_callback("/\[share(.*?)\](.*?)\[\/share\]/ism","bb_ShareAttributes",$Text);
|
$Text = preg_replace_callback("/\[share(.*?)\](.*?)\[\/share\]/ism","bb_ShareAttributes",$Text);
|
||||||
|
@ -1 +1 @@
|
|||||||
2013-08-25.416
|
2013-08-26.417
|
||||||
|
Reference in New Issue
Block a user