mirror of
https://github.com/friendica/friendica
synced 2024-12-23 13:20:21 +00:00
hex tag filter: look at entire string
This commit is contained in:
parent
2f6333c751
commit
3f36d375e2
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ function create_tags_from_item($itemid) {
|
|||
if(ctype_digit(substr(trim($tag),1)))
|
||||
continue;
|
||||
// try to ignore html hex escapes, e.g. #x2317
|
||||
if((substr(trim($tag),1,1) == 'x' || substr(trim($tag),1,1) == 'X') && ctype_digit(substr(trim($tag),2,1)))
|
||||
if((substr(trim($tag),1,1) == 'x' || substr(trim($tag),1,1) == 'X') && ctype_digit(substr(trim($tag),2)))
|
||||
continue;
|
||||
$type = TERM_HASHTAG;
|
||||
$term = substr($tag, 1);
|
||||
|
|
Loading…
Reference in a new issue