We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
create an email address with an html entity in the text of the anchor
<a href="mailto:somebody@somewhere.com">Fred&Tom@somewhere.com</a>
Fred&Tom@somewhere.com
Fred&Tom@somewhere.com
J3.3.3
function convertEncoding($text) in libraries/cms/html/email.php seems to be the culprit as it replaces vowels in the text (and also in the entities).
I did a quick kludge by changing this function to:
protected static function convertEncoding($text) { $text = html_entity_decode($text); // Replace vowels with character encoding $text = str_replace('a', 'a', $text); $text = str_replace('e', 'e', $text); $text = str_replace('i', 'i', $text); $text = str_replace('o', 'o', $text); $text = str_replace('u', 'u', $text); $text = htmlentities($text,ENT_QUOTES,'UTF-8',false); return $text; }
seems to work but I have probably broken something else!
The text was updated successfully, but these errors were encountered:
Bug confirmed and the suggested fix worked fine for me. I create a PR for this so we can test it and, if everything seems fine, merged it into staging
Sorry, something went wrong.
Good find! Merged. Thanks.
mail cloaking does not work with & in text
0448432
Suggested code fix from PR joomla#4263
No branches or pull requests
Steps to reproduce the issue
create an email address with an html entity in the text of the anchor
Expected result
Actual result
System information (as much as possible)
J3.3.3
Additional comments
function convertEncoding($text) in libraries/cms/html/email.php seems to be the culprit as it replaces vowels in the text (and also in the entities).
I did a quick kludge by changing this function to:
seems to work but I have probably broken something else!
The text was updated successfully, but these errors were encountered: