Perl Monk, Perl Meditation | |
PerlMonks |
Re: Re: Instant redirect from form inputby Clownburner (Monk) |
on Mar 15, 2001 at 04:54 UTC ( [id://64578]=note: print w/replies, xml ) | Need Help?? |
FWIW, the servers I run this script on do not have any access restricted pages, and the redirects are always local (relative) URLs anyway. What's interesting is that I did a packet capture using this script with Apache (1.3.14/Linux) and it did in fact pass a "302 Moved" back to the browser, and my browser immediately proceeded to fetch the indicated page. So how do you mean "internal" redirect? Also, what do you mean by "The tr/// does nothing"? It does seem to handily eat any characters that aren't in the list -- or did you mean that it doesn't do anything with regards to security? I'm anxious to hear your opinion on this in slighly more depth, and what could be done to improve the code. Perhaps always returning the redirect with an absolute URL? Thanks for your help... Signature void where prohibited by law.
In Section
Cool Uses for Perl
|
|