diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-12-14 13:17:33 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-12-14 13:17:33 +0100 |
commit | ee1fe95ee563859a0538f65a93e755a866116ee6 (patch) | |
tree | 3439124ae8a924db313c1721968c4562084b6c49 | |
parent | f79c6190654ec3912abc34eb0568331983a968a3 (diff) | |
download | volse-hubzilla-ee1fe95ee563859a0538f65a93e755a866116ee6.tar.gz volse-hubzilla-ee1fe95ee563859a0538f65a93e755a866116ee6.tar.bz2 volse-hubzilla-ee1fe95ee563859a0538f65a93e755a866116ee6.zip |
fix regex
-rw-r--r-- | include/bb2diaspora.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index e22b6a7dd..ffb157b2f 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -149,7 +149,7 @@ function markdown_to_bb($s, $use_zrl = false) { $s = html2bbcode($s); - $s = preg_replace("/\[([uz])rl=(.*?)\]\[\/[uz]rl\]/ism",'[$1rl=$2]$2[/$1rl]',$s); + $s = preg_replace("/\[([uz])rl=(.*?)\]\[\[uz]rl\]/ism",'[$1rl=$2]$2[/$1rl]',$s); // protect the recycle symbol from turning into a tag, but without unescaping angles and naked ampersands $s = str_replace('♲',html_entity_decode('♲',ENT_QUOTES,'UTF-8'),$s); |