gitea/modules/markup
Dejan Kitic af6be75adb
Valid email address should only start with alphanumeric (#28174)
This fixes issue #27847 where regular expression allowed email address
to start with special symbols. Valid email addresses should start with
alphanumeric character, and as such will be rendered as email.

Added test cases from the bug report to validate, such input will not be
rendered anymore as email address.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-04-20 19:18:14 +08:00
..
asciicast Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
common Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
console Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
csv Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
external Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
internal Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
markdown markup: improve code block readability and isolate copy button (#34009) 2025-04-19 05:53:39 +00:00
mdstripper Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
orgmode Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
camo_test.go Use camo.Always instead of camo.Allways (#32097) 2024-09-21 12:50:54 +03:00
camo.go Use camo.Always instead of camo.Allways (#32097) 2024-09-21 12:50:54 +03:00
html_codepreview_test.go Refactor markup render system (#32612) 2024-11-24 16:18:57 +08:00
html_codepreview.go Refactor markup render system (#32612) 2024-11-24 16:18:57 +08:00
html_commit.go Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
html_email.go Valid email address should only start with alphanumeric (#28174) 2025-04-20 19:18:14 +08:00
html_emoji.go Refactor markup render system (#32533) 2024-11-18 13:25:42 +08:00
html_internal_test.go Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
html_issue_test.go Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
html_issue.go Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
html_link.go Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
html_mention.go Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
html_node.go Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
html_test.go Valid email address should only start with alphanumeric (#28174) 2025-04-20 19:18:14 +08:00
html.go Valid email address should only start with alphanumeric (#28174) 2025-04-20 19:18:14 +08:00
main_test.go Refactor markup render system (#32612) 2024-11-24 16:18:57 +08:00
render_helper.go Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
render_link_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
render_link.go Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
render.go Fix markdown render behaviors (#34122) 2025-04-05 11:56:48 +08:00
renderer.go Refactor markup render system (#32612) 2024-11-24 16:18:57 +08:00
sanitizer_custom.go Refactor markup render system (#32533) 2024-11-18 13:25:42 +08:00
sanitizer_default_test.go Refactor global init code and add more comments (#33755) 2025-03-03 10:57:28 +08:00
sanitizer_default.go Fix "stop time tracking button" on navbar (#33084) 2025-01-03 04:01:05 +08:00
sanitizer_description_test.go
sanitizer_description.go
sanitizer.go