Commit graph

18 commits

Author SHA1 Message Date
Alex Kirk
008ae52a53
Hashtags, Mentions: Use a tag stack instead of regex for protecting tags (#455)
* Use a tag stack instead of regex for protecting tags

* Use the placeholder in the test

* Add comments

* Update comment

* ignor html comments

thanks @marcS0H

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-09-21 17:03:57 +02:00
Dennis
26ad8975d7
Normalize Hashtag behavior in Mastodon Apps (#407)
* Update class-hashtag.php

* Update class-shortcodes.php

* fix unit tests

* missed two tests

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-08-31 15:04:17 +02:00
Alex Kirk
6ea46c5024 Protect cdata 2023-01-27 16:59:15 +01:00
Alex Kirk
e7894f4c4a Also protect <pre> 2023-01-27 16:55:52 +01:00
Alex Kirk
cbfe6ea431 Protect code HTML 2023-01-27 16:50:04 +01:00
Alex Kirk
0230cf7d70 Restructure unit test to make it work again 2023-01-27 15:48:28 +01:00
122461ab6e escape even more 2020-05-12 20:30:06 +02:00
2f5bf1ccc4 explicit use of global functions 2019-09-27 10:12:59 +02:00
ceaa3a4241 changed regex logic
and added some more changes
2019-08-18 23:27:06 +02:00
c53f840230 finally fixed test 2019-08-18 22:53:01 +02:00
a0d670ed77 another fix 2019-08-18 22:39:34 +02:00
aa53bec4e4 oops 2019-08-18 22:34:28 +02:00
4dae4fc350 used wrong tag name 2019-08-18 22:31:09 +02:00
47c8d57f1a setUp must be public 2019-08-18 22:25:24 +02:00
81357da49d fix php 5.3 issue 2019-08-18 22:24:34 +02:00
c9c05e263f test object links 2019-08-18 22:23:34 +02:00
bdd9bd8775 fixed tests 2019-08-18 22:16:59 +02:00
8e87800ee0 added test 2019-08-18 22:08:58 +02:00