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

Email cloak broken when link parameters are not parsed #4354

Closed
wants to merge 1 commit into from

Conversation

pjmatos
Copy link
Contributor

@pjmatos pjmatos commented Sep 26, 2014

When an email link parameter contains values with characters such as #, ( or ), among others -
< a href="mailto:email @ ..." style="color: #00F">email @ ...< /a>

only the latter pattern in the _clock function is matched and thus the code becomes broken.

When an email link parameter contains values with characters such as #, ( or ), among others -
<a href="mailto:mail@mail.com style="color: #00F">mail@mail.com</a>

- only the latter pattern in the _clock function is matched and thus the code becomes broken.
@pjmatos pjmatos changed the title Fix: Email cloak broken when link parameters are not parsed Email cloak broken when link parameters are not parsed Sep 26, 2014
@infograf768
Copy link
Member

@test
Works fine here. No unwanted consequences on other types of styling.
We need also a backport for 2.5.x

@pjmatos
Copy link
Contributor Author

pjmatos commented Sep 26, 2014

Thanks, done #4356

@mbabker
Copy link
Contributor

mbabker commented Sep 29, 2014

Test:

Created an article with content <p>E-mail me at <a style="color: #00f;" href="mailto:michael.babker@joomla.org">michael.babker@joomla.org</a></p> and this screenshot shows the result pre-patch:
screen shot 2014-09-29 at 09 51 59

Applied patch and got the following result:
screen shot 2014-09-29 at 09 52 58

Looked at the HTML source code for each, seems like the expected result is returned here.

This comment was created with the J!Tracker Application at http://issues.joomla.org/.

@mbabker mbabker added this to the Joomla! 3.3.5 milestone Sep 29, 2014
@mbabker mbabker closed this in 6612437 Sep 29, 2014
mbabker added a commit that referenced this pull request Sep 29, 2014
Email cloak broken when link parameters are not parsed (backport #4354)
piotr-cz pushed a commit to piotr-cz/joomla-cms that referenced this pull request Oct 6, 2014
rdeutz pushed a commit to rdeutz/joomla-cms that referenced this pull request Oct 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants