Bug 475301

Summary: Don't format an email address or URL with html if it's in a code tag
Product: [Applications] NeoChat Reporter: Justin Zobel <justin.zobel>
Component: GeneralAssignee: Tobias Fella <fella>
Status: RESOLVED FIXED    
Severity: normal CC: carl
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Justin Zobel 2023-10-06 22:19:45 UTC
If an email address or URL is given in a code tag, Neochat tries to format it like so:

ssh -T <a href="mailto:git@codeberg.org">git@codeberg.org</a>

Code tags should be exempt from automatic formatting by Neochat.
Comment 1 Bug Janitor Service 2023-10-27 20:34:36 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/neochat/-/merge_requests/1371
Comment 2 Tobias Fella 2023-10-28 14:20:00 UTC
Git commit b3315e1ed45576bdb70d004fb705db744a36d5c9 by Tobias Fella.
Committed on 28/10/2023 at 16:19.
Pushed by tfella into branch 'master'.

Add test for bug 475301

M  +9    -0    autotests/texthandlertest.cpp

https://invent.kde.org/network/neochat/-/commit/b3315e1ed45576bdb70d004fb705db744a36d5c9
Comment 3 Tobias Fella 2023-10-28 14:20:08 UTC
Git commit 036a60a0955c274243c0647d2dd11928c2f30867 by Tobias Fella.
Committed on 28/10/2023 at 16:19.
Pushed by tfella into branch 'master'.

Don't linkify urls in code blocks

M  +48   -3    src/texthandler.cpp

https://invent.kde.org/network/neochat/-/commit/036a60a0955c274243c0647d2dd11928c2f30867