0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 17:34:11 -05:00
forgejo/modules/markup
Gusted bb9dcec39c
[v8.0/forgejo] Don't panic on empty blockquote
- Backport #4602
- On a empty blockquote the callout feature would panic, as it expects
to always have at least one child.
- This panic cannot result in a DoS, because any panic that happens
while rendering any markdown input will be recovered gracefully.
- Adds a simple condition to avoid this panic.

(cherry picked from commit efd63ec1d8)
2024-07-22 14:17:50 +02:00
..
asciicast
common [GITEA] test markdown CleanValue to prevent regression 2024-02-05 16:09:41 +01:00
console
csv Add MAX_ROWS option for CSV rendering (#30268) 2024-06-09 16:04:57 +02:00
external Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
markdown [v8.0/forgejo] Don't panic on empty blockquote 2024-07-22 14:17:50 +02:00
mdstripper Resolve lint for unused parameter and unnecessary type arguments (#30750) 2024-05-05 08:38:16 +01:00
orgmode Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
tests/repo/repo1_filepreview Update test 2024-03-28 04:20:13 +01:00
camo.go
camo_test.go
file_preview.go Fix issue where rendering stops after the first invalid parmalink 2024-04-19 18:21:21 +02:00
html.go Refactor markup code (#31399) 2024-06-23 11:53:36 +02:00
html_internal_test.go Fix hash render end with colon (#31319) 2024-06-16 13:42:58 +02:00
html_test.go Refactor markup code (#31399) 2024-06-23 11:53:36 +02:00
renderer.go Merge pull request 'Render inline file permalinks' (#2669) from Mai-Lapyst/forgejo:markup-add-filepreview into forgejo 2024-04-01 13:57:01 +00:00
renderer_test.go
sanitizer.go [BUG] Center icon and callout text 2024-04-03 22:26:19 +02:00
sanitizer_test.go Use restricted sanitizer for repository description (#28141) 2023-11-23 16:34:25 +00:00