Skip tags detection in URL

This commit is contained in:
Max Kostikov 2019-01-22 16:23:44 +01:00
parent 60f890ce0d
commit 66f443fd00

View File

@ -826,6 +826,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
if(preg_match_all('/([@#\!]\&quot\;.*?\&quot\;)/',$s,$match)) {