Commit graph

21 commits

Author SHA1 Message Date
Matt Wiebe
74a774e8e7
Hashtags: 1MB limit for attempting to link (#544) 2023-11-01 10:53:27 -05:00
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
Matthias Pfefferle
7b83fddfe0 fix predictability and collision 2023-07-18 14:36:33 +02:00
Matthias Pfefferle
bf8acf9f51 use wp_rand and change hashtags too 2023-07-18 08:14:28 +02:00
Matthias Pfefferle
c32eec2390 some code cleanup 2023-04-20 15:22:11 +02:00
Alex Kirk
7e3a5f4e68 Handle double protect 2023-01-27 17:23:25 +01: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
7ebb89e92e phpcs lint fixes 2023-01-27 15:48:28 +01:00
Alex Kirk
32f5bec23a Protect tags from being broken 2023-01-27 12:13:41 +01:00
Matthias Pfefferle
0d255d219b change priority
because of #182
2023-01-16 20:28:45 +01:00
d260d7c276 add support for custom post content
fix #97 #91
2020-07-21 09:23:35 +02:00
2f5bf1ccc4 explicit use of global functions 2019-09-27 10:12:59 +02:00
a0d670ed77 another fix 2019-08-18 22:39:34 +02:00
bdd9bd8775 fixed tests 2019-08-18 22:16:59 +02:00
7a7ea3350a fixed default value problem 2019-03-12 22:18:20 +01:00
f10921e554 implement #21 2019-03-02 21:10:42 +01:00
a6d97f8ba7 (php)doc 2019-02-24 13:01:28 +01:00
40b2651b7e big refactoring to use namespaces for a better code structure 2019-02-24 12:07:41 +01:00
Renamed from includes/class-activitypub-hashtag.php (Browse further)