Merge branch 'master' of https://github.com/friendica/red
This commit is contained in:
commit
72218f831e
@ -161,7 +161,7 @@ function red_zrl_callback($matches) {
|
||||
}
|
||||
if($zrl)
|
||||
return $matches[1] . '#^[zrl=' . $matches[2] . ']' . $matches[2] . '[/zrl]';
|
||||
return $matches[0];
|
||||
return $matches[1] . '#^[url=' . $matches[2] . ']' . $matches[2] . '[/url]';
|
||||
}
|
||||
|
||||
|
||||
|
@ -425,7 +425,7 @@ function item_post(&$a) {
|
||||
* (already known to us) which will get a zrl, otherwise link with url
|
||||
*/
|
||||
|
||||
$body = preg_replace_callback("/([^\]\='".'"'."]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\@\_\~\#\%\$\!\+\,]+)/ism", 'red_zrl_callback', $body);
|
||||
$body = preg_replace_callback("/([^\^\]\='".'"'."]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\@\_\~\#\%\$\!\+\,]+)/ism", 'red_zrl_callback', $body);
|
||||
|
||||
/**
|
||||
*
|
||||
|
Reference in New Issue
Block a user