aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2023-12-27 15:05:09 +0100
committerHarald Eilertsen <haraldei@anduin.net>2023-12-27 15:05:09 +0100
commitf5a028fccf6a738c3b5722f0db661d0333f3faff (patch)
treee9c93a7b432d2d2cdec081431290e8d20a97571b /include
parent7cb8ecd36b128d07b5086904af48601b9096cdea (diff)
parentc3a235242eb180860ac778743184d2297dd8f3a9 (diff)
downloadvolse-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.php5
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,'&quot'))
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) ;