From 66f443fd00d3da9df0104e9ed2485d902767fe41 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Tue, 22 Jan 2019 16:23:44 +0100 Subject: Skip tags detection in URL --- include/text.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/text.php') 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 -- cgit v1.2.3