CodeIgniter Forums

Full Version: prep_url adds http:// to mailto: urls
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Al James[/eluser]
Using prep_url() in the url_helper.php adds http:// to mailto: urls!

Really (in my mind) it should check for any URL protocol (ftp: etc...) before adding the http://.

El Forum

[eluser]ReGeDa[/eluser]
some patch 1 year later

http://ellislab.com/forums/viewthread/86796/

El Forum

[eluser]Derek Allard[/eluser]
To be fair, the docs are pretty clear that it will add http:// if it is missing. Prep url was intended for, well, URLs.

Al, give auto_link() a shot, I think that's what you're looking for.