diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-03-17 00:06:37 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-03-17 00:06:37 +0000 |
commit | 50652463a99eac34dc89d85569d6d0d3e74e8316 (patch) | |
tree | 3d2bf51918bf5e34c081d7a01ffd707ca00a6f55 /menu.pl | |
parent | f0a8857e78c2bcdf208dde9e515056235286a685 (diff) |
Moving from HTTP_USER_AGENT to GATEWAY_INTRFACE where appropriate
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@920 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'menu.pl')
-rwxr-xr-x | menu.pl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |