doc/en/cgi/mirror.cgi
Peter Wemm 01a61279be $Id$,$Date$ -> $FreeBSD$
The jury is out on $Date$, but it's presently not being expanded..
1999-09-06 07:03:31 +00:00

18 lines
376 B
Perl
Executable file

#!/usr/bin/perl
# (c) Wolfram Schneider, Berlin. June 1996. Public domain.
#
# FreeBSD WWW mirror redirect
#
# $FreeBSD$
$_ = $ENV{'QUERY_STRING'};
s/^[^=]+=//; # 'variable=value' -> 'value'
s/\+/ /g; # '+' -> space
s/%(..)/pack("c",hex($1))/ge; # '%ab' -> char ab
print "Window-target: _top\n";
print "Location: $_\n";
print "Content-type: text/plain\n\n";
exit 0;