summaryrefslogtreecommitdiff
path: root/net-setup.pl
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-17 00:08:42 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-17 00:08:42 +0000
commit14f4e7b14df6d0a30823b90b66c4f1cb2eb87add (patch)
treeb4b13096279ff96ce8a6746065d7080abbf2b95a /net-setup.pl
parentade367296c479b593370a659c6c75c24c8c73526 (diff)
Moving from HTTP_USER_AGENT to GATEWAY_INTRFACE where appropriate
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@921 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'net-setup.pl')
-rwxr-xr-xnet-setup.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/net-setup.pl b/net-setup.pl
index 4b70aec0..594847e8 100755
--- a/net-setup.pl
+++ b/net-setup.pl
@@ -33,10 +33,10 @@ if (!$@){
$| = 1;
-#not sure how safe this is. If the browser sends a blank HTTP_USER_AGENT
+#not sure how safe this is. If the browser sends a blank GATEWAY_INTERFACE
#will this script destroy part of the install?
#This script should probably be made inaccessible via HTTP until this feature is working
-if (($ENV{HTTP_USER_AGENT})||($ENV{HTTP_HOST})) {
+if (($ENV{GATEWAY_INTERFACE})||($ENV{HTTP_HOST})) {
print "Content-type: text/html\n\nThis does not work yet! use $0 from the command line";
exit;
}