aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-11-13 19:04:59 -0800
committerfriendica <info@friendica.com>2011-11-13 19:04:59 -0800
commitce7a3615b51ee3247cb5c15996337cadc8cf644e (patch)
tree6742500462d26968691c5dcf1c21b6aaf13919d9
parentbbf857ba39c87cf907be88ecd013e961f5ad1a7f (diff)
downloadvolse-hubzilla-ce7a3615b51ee3247cb5c15996337cadc8cf644e.tar.gz
volse-hubzilla-ce7a3615b51ee3247cb5c15996337cadc8cf644e.tar.bz2
volse-hubzilla-ce7a3615b51ee3247cb5c15996337cadc8cf644e.zip
d* - remove dupe bbcode code tags
-rw-r--r--boot.php2
-rw-r--r--include/bb2diaspora.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index a3e485527..3e18db065 100644
--- a/boot.php
+++ b/boot.php
@@ -9,7 +9,7 @@ require_once('include/nav.php');
require_once('include/cache.php');
define ( 'FRIENDIKA_PLATFORM', 'Friendica');
-define ( 'FRIENDIKA_VERSION', '2.3.1163' );
+define ( 'FRIENDIKA_VERSION', '2.3.1164' );
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
define ( 'DB_UPDATE_VERSION', 1103 );
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php
index 6b0589c43..8110d3e75 100644
--- a/include/bb2diaspora.php
+++ b/include/bb2diaspora.php
@@ -22,6 +22,8 @@ function diaspora2bb($s) {
$s = preg_replace("/\[url\=?(.*?)\]https?:\/\/vimeo.com\/([0-9]+)(.*?)\[\/url\]/ism",'[vimeo]$2[/vimeo]',$s);
$s = preg_replace("/\[url\=https?:\/\/vimeo.com\/([0-9]+)\](.*?)\[\/url\]/ism",'[vimeo]$1[/vimeo]',$s);
$s = preg_replace("/([^\]\=]|^)(https?\:\/\/)(vimeo|youtu|www\.youtube|soundcloud)([a-zA-Z0-9\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,]+)/ism", '$1[url]$2$3$4[/url]',$s);
+ // remove duplicate adjacent code tags
+ $s = preg_replace("/(\[code\])+(.*?)(\[\/code\])+/ism","[code]$2[/code]", $s);
$s = scale_diaspora_images($s);
return $s;
}