make links in comments bookmark-able

This commit is contained in:
friendica
2014-02-04 19:39:56 -08:00
parent 9f439c3248
commit 8a11c29413
4 changed files with 11 additions and 5 deletions

View File

@@ -604,7 +604,7 @@ function get_tags($s) {
// bookmarks
if(preg_match_all('/#\^\[(url|zrl)=(.*?)\](.*?)\[\/(url|zrl)\]/',$s,$match,PREG_SET_ORDER)) {
if(preg_match_all('/#\^\[(url|zrl)(.*?)\](.*?)\[\/(url|zrl)\]/',$s,$match,PREG_SET_ORDER)) {
foreach($match as $mtch) {
$ret[] = $mtch[0];
}