This project is archived and is in readonly mode.

#1862 ✓resolved

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="">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=""></a>">Mail me</a>

I wrote a test to reproduce this bug and added a fix as well. See:

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=""></a>

People watching this ticket


Referenced by