diff options
author | Matthew Somerville <matthew@balti.ukcod.org.uk> | 2010-05-14 12:58:28 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@balti.ukcod.org.uk> | 2010-05-14 12:58:28 +0100 |
commit | d9d2f79ce46aa0e4cb0f3d55ad31924838edeb80 (patch) | |
tree | a33320330afc81009466ea4936546f9d489f7121 /web-admin | |
parent | 2e694bdcb7ccdbb4a41efa02d555656bd08eeaf3 (diff) |
Fixes.
Diffstat (limited to 'web-admin')
-rwxr-xr-x | web-admin/index.cgi | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web-admin/index.cgi b/web-admin/index.cgi index fd899f578..8ac3eb132 100755 --- a/web-admin/index.cgi +++ b/web-admin/index.cgi @@ -870,12 +870,14 @@ sub main { my $timeout = $q->param('timeout'); if ($logout) { if (!$timeout) { - $q->redirect('?logout=1&timeout=' + (time() + 7)); + print $q->redirect(-location => '?logout=1;timeout=' . (time() + 7)); return; } if (time() < $timeout) { - $q->header(-status => '401 Unauthorized'); - $q->header('-www-authenticate' => 'Basic realm="www.fixmystreet.com admin pages"'); + print $q->header( + -status => '401 Unauthorized', + -www_authenticate => 'Basic realm="www.fixmystreet.com admin pages"' + ); return; } } |