summaryrefslogtreecommitdiff
path: root/menu.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 /menu.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 'menu.pl')
-rwxr-xr-xmenu.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/menu.pl b/menu.pl
index e54fdd2d..e6a0073a 100755
--- a/menu.pl
+++ b/menu.pl
@@ -156,7 +156,7 @@ sub check_password {
if ($form->{password}) {
if (! Session::password_check($form, $form->{login}, $form->{password})) {
- if ($ENV{HTTP_USER_AGENT}) {
+ if ($ENV{GATEWAY_INTERFACE}) {
&getpassword;
} else {
$form->error(__FILE__.':'.__LINE__.': '.$locale->text('Access Denied!'));
@@ -167,7 +167,7 @@ sub check_password {
}
} else {
- if ($ENV{HTTP_USER_AGENT}) {
+ if ($ENV{GATEWAY_INTERFACE}) {
$ENV{HTTP_COOKIE} =~ s/;\s*/;/g;
@cookies = split /;/, $ENV{HTTP_COOKIE};
foreach (@cookies) {