Webmastersite.net
Register Log In

ftp link relative path

Comments on ftp link relative path

mx3design
Member

Usergroup: Customer
Joined: May 30, 2007

Total Topics: 12
Total Comments: 45
Posted Jul 08, 2008 - 6:00 AM:

I'm tired and have a horrible feeling that I'm being very 'slow' however a file download link added is being treated as having a relative path:

<a href="ftp://www.somesite.com/download/file.exe">download</a> is turning into this:

<a href="http://www.somesite.com/wsnlinks/ftp://www.somesite.com/download/file.exe">download</a>

how do I prevent this from occuring? Is there a tag similar to smarty's <LITERAL></LITERAL> I can wrap around the link?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 08, 2008 - 6:16 PM:

I'll have it only absolutize when there's no ://, instead of checking for http as now.
mx3design
Member

Usergroup: Customer
Joined: May 30, 2007

Total Topics: 12
Total Comments: 45
Posted Jul 09, 2008 - 2:25 AM:

thanks Paul.
mx3design
Member

Usergroup: Customer
Joined: May 30, 2007

Total Topics: 12
Total Comments: 45
Posted Jul 09, 2008 - 4:24 AM:

I found a useful php script which allows a download area to be set up:

www.warkensoft.com/2006/09/file-download-script/



no need to alter relative rewrite on my behalf...
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.