18 Commits

Author SHA1 Message Date
Roardom
047f10be36 add: bbcode and linkify blade directives
Also add escaping content inside joypixels blade directive where necessary.
2025-02-01 16:15:34 +00:00
Roardom
604b7e1937 add: spell check ci
Just an initial portion for now fixing incorrect text and preventing future incorrect text. Eventually, I'd like to fix everything still listed under "ignoredWords" in cspell.json.
2025-01-24 11:30:34 +00:00
HDVinnie
d474ee3be4 update: php8.4 support
- makes unit3d php8.4 + required
- fixes multiple implicitly to explicit nullable type
- dependency updates
- github action updates
- carbon 2 needs to move to carbon 3 in separate pr
2025-01-20 00:04:35 -05:00
Roardom
ad716d7cc3 update: remove XSS cleaner and remove XSS vulnerabilities
We've been mostly relying on the 3rd party xss cleaner to make sure user submitted content is clean. This PR fixes up any leftover holes in the bbcode parser that allow xss vulnerabilities, and as a result, the 3rd party library isn't needed anymore. It cleans responsibly by first, running `htmlspecialchars()` over the content, followed by sanitizing the untrusted urls and whitelisting their protocol.
2025-01-20 02:52:42 +00:00
HDVinnie
09daf021b0 update: BbcodeInput compnent
- fixes phpstan errors
2024-06-21 14:04:43 -04:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
d44eb43c7c fix: swap order of xss cleaning and bbcode parsing in bbcode preview
Follow up to #3497. Had it the wrong way around. We fixed XSS, but broke BBCode.
2024-02-08 14:42:36 +00:00
Roardom
c0b863b54f update: sanitize bbcode preview
Not particurly harmful since the XSS is never saved to the database and is only viewable by the user that typed it.
2024-02-08 14:06:44 +00:00
HDVinnie
656647649f Revert "cleanup: pt.2"
This reverts commit 33d9927abd.
2023-10-12 23:11:20 -04:00
HDVinnie
33d9927abd cleanup: pt.2 2023-10-12 22:41:46 -04:00
HDVinnie
b3f0386149 cleanup: pt.1 2023-10-12 22:30:52 -04:00
Roardom
f4642c0baa fix: html entity double encoding
Bbcode is always sanitized first before being saved, which causes html entities. However, when content is edited again, the html entities aren't decoded before the user edits them, which causes the user to remove the html entities before updating the content. This commit now decodes the html back to text and will resanitize again upon save.
2023-07-22 04:55:15 +00:00
HDVinnie
472c820f99 update: UNIT3D linting
- github action updated with new ruleset in pint.json
- codebase linted with new ruleset
- contributors can now run `./vendor/bin/pint`
- action workflow will auto correct any lint issues upon commit/opened pull request
2023-02-02 08:02:34 -05:00
HDVinnie
2ca429c4ce Revert "PSR12 Linting"
This reverts commit 7e65e1d589.
2022-09-11 19:51:58 -04:00
HDVinnie
7e65e1d589 PSR12 Linting 2022-09-11 23:50:41 +00:00
Roardom
790db77252 update: staff views 2022-08-20 07:12:31 -05:00
Roardom
6c4d3f67e7 fix: upload form inputs lose old data on form invalidation 2022-07-01 18:13:59 -05:00
Roardom
17d83c8a34 add: bbcode input livewire component 2022-06-30 06:25:05 -05:00