? Success

User tests: Successful: Unsuccessful:

avatar Kubik-Rubik
Kubik-Rubik
7 Jun 2014

...cter (+) properly

JoomlaCode entry: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33819&start=0

How to test:

  1. Create article with following email addresses:
    test@example.com
    test+test@example.com
    test+@example.com
    +test@example.com

  2. Load the article in the front end (of course the emailcloak plugin has to be activated). You will see that the addresses are not cloaked properly. If you deactivate JavaScript, then it is even clearer which parts are only considered by the plugin.

  3. Add fix and reload the page. Each address will be cloaked completely and properly.

Further information: http://stackoverflow.com/questions/2049502/what-characters-are-allowed-in-email-address

avatar Kubik-Rubik Kubik-Rubik - open - 7 Jun 2014
avatar Kubik-Rubik Kubik-Rubik - change - 7 Jun 2014
Title
Fix for emailcloak plugin for cloaking email addresses with a plus chara...
[#33819] Fix for emailcloak plugin for cloaking email addresses with a plus chara...
avatar zero-24
zero-24 - comment - 8 Jun 2014

thanks @Kubik-Rubik

It works ok here. Now the mailto links correct. But IIRC if we disable JS (e.g. with NoScript) Joomla should replace the email with:
This email address is being protected from spambots. You need JavaScript enabled to view it.
But at my end it only remove the email.

Is the

element a possible chance?
$replacement .= "<noscript>" . JText::_('JLIB_HTML_CLOAKING') . "</noscript>";

here:
https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/html/email.php#L104

possible as a replacement of:
https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/html/email.php#L95-103
As we cant use JS if JS is disabled ?!

Thanks.

avatar Kubik-Rubik
Kubik-Rubik - comment - 9 Jun 2014

@zero-24 Yes, good idea. In fact, we just have to add the noscript tag to the replacement text. I will update the pull request with this option. Thanks!

Update:

The message is already displayed if JavaScript is deactivated, so we don't need the noscript tag here.

"This email address is being protected from spambots. You need JavaScript enabled to view it. "

avatar zero-24
zero-24 - comment - 9 Jun 2014

thanks @Kubik-Rubik looks like that something is broken at my envoriment. So this is good to go :+1:

avatar losedk
losedk - comment - 9 Jun 2014

Tested. Works fine!

avatar phproberto phproberto - change - 10 Jun 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-06-10 23:31:03
avatar phproberto phproberto - close - 10 Jun 2014
avatar phproberto phproberto - reference | 30f6a7d - 10 Jun 14
avatar phproberto phproberto - merge - 10 Jun 2014
avatar phproberto phproberto - close - 10 Jun 2014
avatar Kubik-Rubik Kubik-Rubik - head_ref_deleted - 20 Jun 2015

Add a Comment

Login with GitHub to post a comment