Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not encode contacts menu mailto links #19176

Merged
merged 1 commit into from
Jan 30, 2020

Conversation

ChristophWurst
Copy link
Member

While writing unit tests for nextcloud/mail#2569 I realized that our mailto links look different to other examples on the internet. Ours use %40 in the href and the others just use @. Also https://www.lifewire.com/constructing-mailto-urls-1166417 shows that you only need to encode subject or other enhanced props (not relevant here).

In any case, I think we should remove the encoding. Links then work fine with Mail, but also with Gnome Evolution. I do not have other clients at hand to test. I also tried to inject HTML with an invalid contacts email address but we escape that on a HTML level when the <a> is rendered.

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair enough.

@ChristophWurst
Copy link
Member Author

/backport to stable18

@ChristophWurst
Copy link
Member Author

/backport to stable17

@ChristophWurst
Copy link
Member Author

/backport to stable16

@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jan 28, 2020
@ChristophWurst ChristophWurst force-pushed the fix/contacts-menu-mailt-encoding branch from 6b9cd93 to 87ec729 Compare January 28, 2020 13:58
@rullzer rullzer merged commit 9ed106f into master Jan 30, 2020
@rullzer rullzer deleted the fix/contacts-menu-mailt-encoding branch January 30, 2020 08:45
@backportbot-nextcloud
Copy link

backport to stable18 in #19207

@backportbot-nextcloud
Copy link

backport to stable17 in #19208

@backportbot-nextcloud
Copy link

backport to stable16 in #19209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: contacts menu
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants