mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 04:56:03 +03:00
[GH-ISSUE #222] [BUG] Text-Form of a HTML-EMail has trouble with links #185
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#185
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ulfgebhardt on GitHub (Aug 25, 2017).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/222
Originally assigned to: @jasonmunro on GitHub.
Hello,

me again - another thing i just noticed
The Link contains the closing ">" which makes it invalid.
This applies only to the Text-Form of a HTML EMail. In HTML Form it works correctly.
The Text-Form seems not to be HTML-Escaped. This could be an security risk, even in Text-Form.See: htmlentities
Grüße Ulf
<3
@jasonmunro commented on GitHub (Aug 26, 2017):
Text messages are escaped, it's actually the reason this bug exists :) URLs that have a trailing > accidentally match our url regex because they have already been changed to an entity. We can't do the regex before we escape the content, because the links we insert would be escaped as well. To solve this I made a change that does the following:
So far it looks like it's working for me. Let me know how it works for you when you can, and again thanks for the feedback!
@jasonmunro commented on GitHub (Sep 7, 2017):
Found and fixed a bug with this, but I believe it is now working better
@jasonmunro commented on GitHub (Sep 12, 2017):
@ulfgebhardt I would like to close this since I think it's fixed, if you could confirm for me that would be great! Thanks!
@ulfgebhardt commented on GitHub (Sep 13, 2017):
Is fixed, please close!
Rev:
26a3870e58Grüße Ulf
<3