Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Redirect Problem

Quote Reply
Redirect Problem
My LinksSQL has both links to other sites and downloads. Any of my download links that start with ftp:// end up being written in the redirect as http://ftp://...

If found this bit of code in the jump.cgi file that I think is responsible, but I'm not really sure how to alter it:

Code:
# Now let's send the user to the url..
($goto =~ m,^http://,) or ($goto = "http://$goto");
$goto ? print $in->redirect ($goto) : return &error ("Record not found: $id");
}
}

I know that one part of it is a RegEx match expression but that's about it.

What I need for the program to do is not preface the URL's with anything at all.

Ideas?

Douglas
Subject Author Views Date
Thread Redirect Problem Douglas 2071 Dec 30, 1999, 1:13 PM
Post Re: Redirect Problem
widgetz 1992 Dec 30, 1999, 1:33 PM
Post Re: Redirect Problem
Douglas 1986 Dec 30, 1999, 2:35 PM
Post Re: Redirect Problem
pugdog 1992 Dec 30, 1999, 3:03 PM