diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2023-12-27 15:05:09 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2023-12-27 15:05:09 +0100 |
commit | f5a028fccf6a738c3b5722f0db661d0333f3faff (patch) | |
tree | e9c93a7b432d2d2cdec081431290e8d20a97571b /include | |
parent | 7cb8ecd36b128d07b5086904af48601b9096cdea (diff) | |
parent | c3a235242eb180860ac778743184d2297dd8f3a9 (diff) | |
download | volse-hubzilla-f5a028fccf6a738c3b5722f0db661d0333f3faff.tar.gz volse-hubzilla-f5a028fccf6a738c3b5722f0db661d0333f3faff.tar.bz2 volse-hubzilla-f5a028fccf6a738c3b5722f0db661d0333f3faff.zip |
Merge branch 'dev' into tests/test-db-setup-wip
Diffstat (limited to 'include')
-rw-r--r-- | include/text.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index 5330e19c7..5ef28bfde 100644 --- a/include/text.php +++ b/include/text.php @@ -904,6 +904,8 @@ function get_tags($s) { $ret[] = $mtch; } } + + if(preg_match_all('/([@#\!]\".*?\")/',$s,$match)) { foreach($match[1] as $mtch) { $ret[] = $mtch; @@ -936,6 +938,8 @@ function get_tags($s) { // or quote remnants from the quoted strings we already picked out earlier if(strpos($mtch,'"')) continue; + if(strpos($mtch,'"')) + continue; $ret[] = $mtch; } @@ -1639,6 +1643,7 @@ function format_hashtags(&$item) { $s = ''; $terms = isset($item['term']) ? get_terms_oftype($item['term'], array(TERM_HASHTAG, TERM_COMMUNITYTAG)) : []; + if($terms) { foreach($terms as $t) { $term = htmlspecialchars($t['term'], ENT_COMPAT, 'UTF-8', false) ; |