forgejo/modules/markup
Gusted 254bded75e
fix: strict matching of allowed content for sanitizer
- _Simply_ add `^$` to regexp that didn't had it yet, this avoids any
content being allowed that simply had the allowed content as a
substring.
- Fix file-preview regex to have `$` instead of `*`.

(cherry picked from commit 7067cc7da4)

v9: added fix for ref-issue, this is already fixed in forgejo branch but
not backported as it was part of a feature.
2024-11-15 11:32:51 +01:00
..
asciicast
common
console Construct screen 2024-09-06 20:24:51 +02:00
csv Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
external
markdown revert: accidental change 2024-08-18 16:36:06 +02:00
mdstripper
orgmode Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
tests/repo/repo1_filepreview fix: include last line in file previews with no trailing newline 2024-08-24 17:10:31 -06:00
camo.go Use camo.Always instead of camo.Allways (#32097) 2024-09-27 08:13:30 +00:00
camo_test.go Use camo.Always instead of camo.Allways (#32097) 2024-09-27 08:13:30 +00:00
file_preview.go fix: include last line in file previews with no trailing newline 2024-08-24 17:10:31 -06:00
html.go feat(ui): add more emoji and code block rendering in issues 2024-09-24 14:20:33 +02:00
html_internal_test.go fix: improve PR/issue short link display text 2024-08-22 15:49:05 -06:00
html_test.go fix: include last line in file previews with no trailing newline 2024-08-24 17:10:31 -06:00
renderer.go
renderer_test.go
sanitizer.go fix: strict matching of allowed content for sanitizer 2024-11-15 11:32:51 +01:00
sanitizer_test.go disallow javascript: URI in the repository description 2024-08-09 07:04:01 +02:00