-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
NC13.0.4 contact search envelope href attribute mailto "addr-spec" not encoded to RFC 6068 standard #10279
Comments
A very simple fix: A more complicated fix would be to add optional parameters for the subject and body, and of course to consider updating this code to implode an array for contact groups.
Yes, I know I went nuts and possibly over-coded this more complex example but I will explain a few key points. The reason why I used an associative array and strToLower in this example for $emails is not because ALL CAPS email addresses are annoying ( which they are). It was to eliminate duplicate email addresses -- duplicates keys will get overwritten. I anticipate a situation with groups where if you emailed multiple groups and individuals that the same address could get added many times. |
I'm closing this issue due to inactivity. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen. |
Steps to reproduce
1 . Search a contact on upper right
2. Inspect mailto source on envelope next to a contact name
3. bad mailto link in href attribute of anchor tag
Expected behavior
mailto addr-spec should contain : and @ per RFC 6068
e.g.) href="mailto:[email protected]"
RFC 6068 states:
Actual behavior
@ character encoded as %40
e.g.) <a class="top-action" href="mailto:admin%40domain.tld" title="" data-original-title="[email protected]"> <img src="https://domain.tld/nextcloud/core/img/actions/mail.svg" alt="[email protected]"></a>
Server configuration
negligible
Operating system:
Ubuntu 16
Web server:
Apache 2.4
Database:
mysql
PHP version:
7.0
Nextcloud version: (see Nextcloud admin page)
13.0.4
Updated from an older Nextcloud/ownCloud or fresh install:
updated from NC12
Where did you install Nextcloud from:
cli
Signing status:
Client configuration
Browser:
Chrome
Operating system:
Windows 10 Home Insider
The text was updated successfully, but these errors were encountered: