summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-04 13:59:05 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-04 13:59:05 +0800
commitee41ba430a04f1e18fbe1cfb37ea83a9807f0305 (patch)
treecd2a5f545b7eab87e64255d4f86f74b97d265a4c
parent182426413cdd81f1d2b9ec5a6a1e741ea669521f (diff)
downloadpttbbs-ee41ba430a04f1e18fbe1cfb37ea83a9807f0305.tar
pttbbs-ee41ba430a04f1e18fbe1cfb37ea83a9807f0305.tar.gz
pttbbs-ee41ba430a04f1e18fbe1cfb37ea83a9807f0305.tar.bz2
pttbbs-ee41ba430a04f1e18fbe1cfb37ea83a9807f0305.tar.lz
pttbbs-ee41ba430a04f1e18fbe1cfb37ea83a9807f0305.tar.xz
pttbbs-ee41ba430a04f1e18fbe1cfb37ea83a9807f0305.tar.zst
pttbbs-ee41ba430a04f1e18fbe1cfb37ea83a9807f0305.zip
add ?brdname support
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@1018 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rwxr-xr-xpttbbs/staticweb/index.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/pttbbs/staticweb/index.pl b/pttbbs/staticweb/index.pl
index ea48b874..2fcd7e30 100755
--- a/pttbbs/staticweb/index.pl
+++ b/pttbbs/staticweb/index.pl
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $Id: index.pl,v 1.1 2003/07/03 12:39:05 in2 Exp $
+# $Id: index.pl,v 1.2 2003/07/04 05:59:05 in2 Exp $
use lib qw/./;
use LocalVars;
use CGI qw/:standard/;
@@ -10,6 +10,9 @@ sub main
{
my($tmpl, %rh);
+ print redirect("/man.pl/$1/")
+ if( $ENV{REDIRECT_REQUEST_URI} =~ m|/\?(.*)| );
+
charset('');
print header();