Skip tags detection in URL
This commit is contained in:
parent
60f890ce0d
commit
66f443fd00
@ -826,6 +826,9 @@ function get_tags($s) {
|
|||||||
// ignore anything in [color= ], because it may contain color codes which are mistaken for tags
|
// ignore anything in [color= ], because it may contain color codes which are mistaken for tags
|
||||||
$s = preg_replace('/\[color=(.*?)\]/sm','',$s);
|
$s = preg_replace('/\[color=(.*?)\]/sm','',$s);
|
||||||
|
|
||||||
|
// skip anchors in URL
|
||||||
|
$s = preg_replace('/\[url=(.*?)\]/sm','',$s);
|
||||||
|
|
||||||
// match any double quoted tags
|
// match any double quoted tags
|
||||||
|
|
||||||
if(preg_match_all('/([@#\!]\"\;.*?\"\;)/',$s,$match)) {
|
if(preg_match_all('/([@#\!]\"\;.*?\"\;)/',$s,$match)) {
|
||||||
|
Reference in New Issue
Block a user