turn all Red links into zrls (not the old zrls, the new bbcode zrl which means we can zidify them)

This commit is contained in:
friendica
2013-04-15 03:00:08 -07:00
parent ab5151c470
commit 7e6890832b
16 changed files with 60 additions and 59 deletions

View File

@@ -1662,7 +1662,7 @@ function normalise_openid($s) {
function undo_post_tagging($s) {
$matches = null;
$cnt = preg_match_all('/([@#])\[url=(.*?)\](.*?)\[\/url\]/ism',$s,$matches,PREG_SET_ORDER);
$cnt = preg_match_all('/([@#])\[zrl=(.*?)\](.*?)\[\/zrl\]/ism',$s,$matches,PREG_SET_ORDER);
if($cnt) {
foreach($matches as $mtch) {
$s = str_replace($mtch[0], $mtch[1] . $mtch[3],$s);