https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
81f53ff
)
Merge pull request #9828 from MrPetovan/bug/9733-tag-numbers
author
Tobias Diekershoff
<tobias.diekershoff@gmx.net>
Thu, 21 Jan 2021 16:09:51 +0000
(17:09 +0100)
committer
GitHub
<noreply@github.com>
Thu, 21 Jan 2021 16:09:51 +0000
(17:09 +0100)
Remove strictly numeric tags exception
src/Content/Text/BBCode.php
patch
|
blob
|
history
diff --git
a/src/Content/Text/BBCode.php
b/src/Content/Text/BBCode.php
index
25812db
..
ded3e2f
100644
(file)
--- a/
src/Content/Text/BBCode.php
+++ b/
src/Content/Text/BBCode.php
@@
-2104,11
+2104,6
@@
class BBCode
continue;
}
- // ignore strictly numeric tags like #1
- if ((strpos($match, '#') === 0) && ctype_digit(substr($match, 1))) {
- continue;
- }
-
// try not to catch url fragments
if (strpos($string, $match) && preg_match('/[a-zA-z0-9\/]/', substr($string, strpos($string, $match) - 1, 1))) {
continue;