This project is archived and is in readonly mode.

#3494 ✓resolved
Zach Brock

[PATCH] Autolinking non-http protocols doesn't work

Reported by Zach Brock | November 19th, 2009 @ 07:00 AM

If you redefined the AUTO_LINK_RE to support protocols other than HTTP, bad links are generated. In the auto_link_urls code it checks if there is an http in the generated href and if there isn't it prepends one. If you're using auto_link_urls on, for example, ftp:// links, instead of <a href=""></a> , you get <a href="http://"></a>. This patch adds a test and changes the code to check for any protocol instead of just http before prepending the default.

This patch is against the 2-3-stable branch.

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>

Referenced by