This project is archived and is in readonly mode.

#1862 ✓resolved
marek

Running autolink on text containing a mailto: link breaks

Reported by marek | February 3rd, 2009 @ 11:01 PM | in 3.x

ActionView::Helpers::TextHelper#autolink does not handle certain mailto: links properly.

Assume the following html:


<a href="mailto:david@loudthinking.com">Mail me</a>

When running this html through autolink, it should not alter the html. However it is transformed to:


<a href="mailto:<a href="david@loudthinking.com">david@loudthinking.com</a>">Mail me</a>

I wrote a test to reproduce this bug and added a fix as well. See: http://github.com/mdh/rails/comm...

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages