aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-01-22 16:23:44 +0100
committerMax Kostikov <max@kostikov.co>2019-01-22 16:23:44 +0100
commit66f443fd00d3da9df0104e9ed2485d902767fe41 (patch)
treebb15657563a595e80a05c2cea4c4fce8a97475ed /include/text.php
parent60f890ce0dd95cf3c4f7cb72b61bcd71ec0c170a (diff)
downloadvolse-hubzilla-66f443fd00d3da9df0104e9ed2485d902767fe41.tar.gz
volse-hubzilla-66f443fd00d3da9df0104e9ed2485d902767fe41.tar.bz2
volse-hubzilla-66f443fd00d3da9df0104e9ed2485d902767fe41.zip
Skip tags detection in URL
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 3cc21e4ce..7d253e3d7 100644
--- a/include/text.php
+++ b/include/text.php
@@ -825,6 +825,9 @@ function get_tags($s) {
// ignore anything in [color= ], because it may contain color codes which are mistaken for tags
$s = preg_replace('/\[color=(.*?)\]/sm','',$s);
+
+ // skip anchors in URL
+ $s = preg_replace('/\[url=(.*?)\]/sm','',$s);
// match any double quoted tags